aboutsummaryrefslogtreecommitdiffstats
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:07:12 +0200
commit9148a985c0302cc3dac9179871ec4b2d989c47bc (patch)
treea18b4740edc5a119c2da198c565892bd12d96139
parent836ef6a89812489116c3599a60cd97950f166964 (diff)
downloadarchiva-9148a985c0302cc3dac9179871ec4b2d989c47bc.tar.gz
archiva-9148a985c0302cc3dac9179871ec4b2d989c47bc.zip
Setting directory hint for root path of asset
-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();
}