Skip to content

Commit

Permalink
fix(core): Slash/backslash windows issue when listing all folders (#5065
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Skraye committed Sep 24, 2024
1 parent 07a10f3 commit 38d221e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public List<NamespaceFile> all(final boolean includeDirectories) throws IOExcept
**/
@Override
public List<NamespaceFile> all(final String prefix, final boolean includeDirectories) throws IOException {
URI namespacePrefix = URI.create(NamespaceFile.of(namespace, Optional.ofNullable(prefix).map(Path::of).orElse(null)).storagePath() + "/");
URI namespacePrefix = URI.create(NamespaceFile.of(namespace, Optional.ofNullable(prefix).map(Path::of).orElse(null)).storagePath().toString().replace("\\","/") + "/");
return storage.allByPrefix(tenant, namespacePrefix, includeDirectories)
.stream()
.map(uri -> new NamespaceFile(relativize(uri), uri, namespace))
Expand Down

0 comments on commit 38d221e

Please sign in to comment.