Skip to content

Commit

Permalink
fix(local-storage): Set windows path to linux path (#5248)
Browse files Browse the repository at this point in the history
close #5247
  • Loading branch information
Skraye authored Sep 30, 2024
1 parent 48676f4 commit 4d46ebd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d46ebd

Please sign in to comment.