diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-09-22 00:07:12 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-09-22 00:07:12 +0200 |
commit | 9148a985c0302cc3dac9179871ec4b2d989c47bc (patch) | |
tree | a18b4740edc5a119c2da198c565892bd12d96139 | |
parent | 836ef6a89812489116c3599a60cd97950f166964 (diff) | |
download | archiva-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.java | 4 |
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(); } |