mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
fix(): use string instead of path to be Windows compatible for namespace files (#4471)
This commit is contained in:
@@ -78,10 +78,11 @@ public class LocalStorage implements StorageInterface {
|
||||
Files.walkFileTree(fsPath, new SimpleFileVisitor<>() {
|
||||
@Override
|
||||
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
|
||||
String dirPath = dir.toString().replace("\\", "/");
|
||||
if (includeDirectories) {
|
||||
uris.add(URI.create(dir + "/"));
|
||||
uris.add(URI.create(dirPath + "/"));
|
||||
}
|
||||
return super.preVisitDirectory(dir, attrs);
|
||||
return super.preVisitDirectory(Path.of(dirPath), attrs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user