public static Map<String, URI> uploadOutputFiles(RunContext runContext, Path outputDir) throws IOException {
        // upload output files
        Map<String, URI> uploaded = new HashMap<>();

        try (Stream<Path> walk = Files.walk(outputDir)) {
            walk
                .filter(Files::isRegularFile)
                .filter(path -> !path.startsWith("."))
                .forEach(throwConsumer(path -> {
                    String filename = outputDir.relativize(path).toString();

                    uploaded.put(
                        filename,
                        runContext.storage().putFile(path.toFile(), filename)
                    );
                }));
        }

        return uploaded;
    }
@Test
    void uploadOutputFiles() throws IOException {
        var runContext = runContextFactory.of();
        Path path = Path.of("/tmp/unittest/file.txt");
        if (!path.toFile().exists()) {
            Files.createFile(path);
        }

        var outputFiles = ScriptService.uploadOutputFiles(runContext, Path.of("/tmp/unittest"));
        assertThat(outputFiles, not(anEmptyMap()));
        assertThat(outputFiles.get("file.txt"), is(URI.create("kestra:///file.txt")));

        path.toFile().delete();
    }