aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-09-22 00:07:12 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-09-22 00:09:54 +0200
commit74d69f36c8f15366e21608aa6cce4648b6202833 (patch)
tree7cf273054621fbe735a9386a9ea581e163a6bcd5 /archiva-modules
parent71919be853aadbc9d7632e4f8d66c8f19e35ab5f (diff)
downloadarchiva-74d69f36c8f15366e21608aa6cce4648b6202833.tar.gz
archiva-74d69f36c8f15366e21608aa6cce4648b6202833.zip
Setting directory hint for root path of asset
Diffstat (limited to 'archiva-modules')
-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();
}