backup: fix listDir to return path instead of fullPath
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user