backup: fix listDir to return path instead of fullPath

This commit is contained in:
Girish Ramakrishnan
2025-08-02 10:24:51 +02:00
parent c935744f4c
commit 4fcaae8053
6 changed files with 25 additions and 26 deletions

View File

@@ -154,7 +154,7 @@ async function listDir(config, remotePath, batchSize, marker) {
stack.push(fullEntryPath);
} else if (dirent.isFile()) { // does not include symlink
const stat = await fs.promises.lstat(fullEntryPath);
fileStream.push({ fullPath: path.relative(fullRemotePath, fullEntryPath), size: stat.size });
fileStream.push({ path: path.relative(fullRemotePath, fullEntryPath), size: stat.size });
}
}