diff --git a/storage-local/src/main/java/io/kestra/storage/local/LocalStorage.java b/storage-local/src/main/java/io/kestra/storage/local/LocalStorage.java index 4bb6fae71a0..ece281a3462 100644 --- a/storage-local/src/main/java/io/kestra/storage/local/LocalStorage.java +++ b/storage-local/src/main/java/io/kestra/storage/local/LocalStorage.java @@ -26,6 +26,7 @@ import java.util.stream.Stream; import static io.kestra.core.utils.Rethrow.throwFunction; +import static io.kestra.core.utils.WindowsUtils.windowsToUnixPath; @Plugin @Plugin.Id("local") @@ -55,7 +56,7 @@ private Path getPath(String tenantId, URI uri) { } parentTraversalGuard(uri); - return Paths.get(basePath.toString(), uri.getPath()); + return Paths.get(basePath.toString(), windowsToUnixPath(uri.getPath())); } @Override