From ba57ef4d818f7f43d68bad7c0d563a01729b9795 Mon Sep 17 00:00:00 2001 From: YannC Date: Tue, 24 Sep 2024 15:38:36 +0200 Subject: [PATCH] fix(core): Slash/backslash windows issue when listing all folders --- .../main/java/io/kestra/core/storages/InternalNamespace.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/io/kestra/core/storages/InternalNamespace.java b/core/src/main/java/io/kestra/core/storages/InternalNamespace.java index d0826aff0b..7ff43f9338 100644 --- a/core/src/main/java/io/kestra/core/storages/InternalNamespace.java +++ b/core/src/main/java/io/kestra/core/storages/InternalNamespace.java @@ -84,7 +84,7 @@ public List all(final boolean includeDirectories) throws IOExcept **/ @Override public List 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))