aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archiva-modules/archiva-base/archiva-storage-fs/src/main/java/org/apache/archiva/repository/storage/FilesystemAsset.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-storage-fs/src/main/java/org/apache/archiva/repository/storage/FilesystemAsset.java b/archiva-modules/archiva-base/archiva-storage-fs/src/main/java/org/apache/archiva/repository/storage/FilesystemAsset.java
index 4e35e5dc3..271dc1e3a 100644
--- a/archiva-modules/archiva-base/archiva-storage-fs/src/main/java/org/apache/archiva/repository/storage/FilesystemAsset.java
+++ b/archiva-modules/archiva-base/archiva-storage-fs/src/main/java/org/apache/archiva/repository/storage/FilesystemAsset.java
@@ -118,6 +118,10 @@ public class FilesystemAsset implements StorageAsset, Comparable {
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();
}