@gallop.software/studio 2.3.44 → 2.3.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +15 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1758,7 +1758,21 @@ async function handleMoveStream(request) {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
return count;
|
|
1760
1760
|
};
|
|
1761
|
-
|
|
1761
|
+
const localFileCount = await countFilesRecursive(absolutePath);
|
|
1762
|
+
const folderPrefix = oldKey + "/";
|
|
1763
|
+
let cloudOnlyCount = 0;
|
|
1764
|
+
for (const metaKey of Object.keys(meta)) {
|
|
1765
|
+
if (metaKey.startsWith(folderPrefix)) {
|
|
1766
|
+
const relPath = metaKey.slice(folderPrefix.length);
|
|
1767
|
+
const localPath = path6.join(absolutePath, relPath);
|
|
1768
|
+
try {
|
|
1769
|
+
await fs6.access(localPath);
|
|
1770
|
+
} catch {
|
|
1771
|
+
cloudOnlyCount++;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
totalFiles += localFileCount + cloudOnlyCount;
|
|
1762
1776
|
expandedItems.push({ itemPath, safePath, itemName, oldKey, newKey, newAbsolutePath, isVirtualFolder: false });
|
|
1763
1777
|
} else if (!hasLocalItem) {
|
|
1764
1778
|
const folderPrefix = oldKey + "/";
|