Compare commits

..

2 Commits

Author SHA1 Message Date
Nicolas Meienberger
275bf34661 wip 2025-11-21 17:55:41 +01:00
Nicolas Meienberger
aad9cfefd3 fix: properly decode path to support all special unicode characters 2025-11-21 10:59:12 +01:00

View File

@@ -565,7 +565,7 @@ const ls = async (config: RepositoryConfig, snapshotId: string, path?: string) =
addRepoSpecificArgs(args, config, env);
const res = await safeSpawn({ command: "restic", args, env });
const res = await $`restic ${args}`.env(env).nothrow().quiet();
await cleanupTemporaryKeys(config, env);
if (res.exitCode !== 0) {
@@ -574,7 +574,7 @@ const ls = async (config: RepositoryConfig, snapshotId: string, path?: string) =
}
// The output is a stream of JSON objects, first is snapshot info, rest are file/dir nodes
const stdout = res.stdout;
const stdout = res.text();
const lines = stdout
.trim()
.split("\n")