This commit is contained in:
Girish Ramakrishnan
2024-07-08 13:18:22 +02:00
parent 1dc6b40a68
commit 7911780a16

View File

@@ -109,7 +109,7 @@ async function saveFsMetadata(dataLayout, metadataFile) {
};
// we assume small number of files. spawnSync will raise a ENOBUFS error after maxBuffer
for (let lp of dataLayout.localPaths()) {
for (const lp of dataLayout.localPaths()) {
const emptyDirs = await shell.exec('saveFsMetadata', `find ${lp} -type d -empty`, { maxBuffer: 1024 * 1024 * 80 });
if (emptyDirs.length) metadata.emptyDirs = metadata.emptyDirs.concat(emptyDirs.trim().split('\n').map((ed) => dataLayout.toRemotePath(ed)));