]> source.dussan.org Git - archiva.git/commitdiff
Fixing base dir handling
authorMartin Stockhammer <martin_s@apache.org>
Fri, 13 Mar 2020 18:20:40 +0000 (19:20 +0100)
committerMartin Stockhammer <martin_s@apache.org>
Fri, 13 Mar 2020 18:20:40 +0000 (19:20 +0100)
archiva-modules/archiva-base/archiva-storage-fs/src/main/java/org/apache/archiva/repository/storage/fs/FilesystemAsset.java

index bbcf38a701ca980e0e9f03afc6c656d5ef25dcb3..fb118a85c4d85462f29647c22cf101be0be710e5 100644 (file)
@@ -277,7 +277,7 @@ public class FilesystemAsset implements StorageAsset, Comparable {
     @Override
     public List<StorageAsset> list() {
         try {
-            return Files.list(assetPath).map(p -> new FilesystemAsset(storage, relativePath + "/" + p.getFileName().toString(), assetPath.resolve(p)))
+            return Files.list(assetPath).map(p -> new FilesystemAsset(storage, relativePath + "/" + p.getFileName().toString(), assetPath.resolve(p), this.basePath))
                     .collect(Collectors.toList());
         } catch (IOException e) {
             return Collections.EMPTY_LIST;