Setting directory hint for root path of asset
@@ -118,6 +118,10 @@ public FilesystemAsset(RepositoryStorage storage, String path, Path assetPath) {
this.setPermissionsForNew = false;
this.basePath = null;
this.storage = storage;
+ // The base directory is always a directory
+ if ("".equals(path) || "/".equals(path)) {
+ this.directoryHint = true;
+ }
init();
}
