@gallop.software/studio 2.3.38 → 2.3.39
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 +6 -4
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1512,12 +1512,12 @@ async function handleRenameStream(request) {
|
|
|
1512
1512
|
if (hasLocalItem) {
|
|
1513
1513
|
await fs6.rename(absoluteOldPath, absoluteNewPath);
|
|
1514
1514
|
const imagesDir = getPublicPath("/images");
|
|
1515
|
-
const
|
|
1515
|
+
const oldThumbFolder2 = path6.join(imagesDir, oldRelativePath);
|
|
1516
1516
|
const newThumbFolder = path6.join(imagesDir, newRelativePath);
|
|
1517
1517
|
try {
|
|
1518
|
-
await fs6.access(
|
|
1518
|
+
await fs6.access(oldThumbFolder2);
|
|
1519
1519
|
await fs6.mkdir(path6.dirname(newThumbFolder), { recursive: true });
|
|
1520
|
-
await fs6.rename(
|
|
1520
|
+
await fs6.rename(oldThumbFolder2, newThumbFolder);
|
|
1521
1521
|
} catch {
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
@@ -1597,7 +1597,9 @@ async function handleRenameStream(request) {
|
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
1599
|
await saveMeta(meta);
|
|
1600
|
-
await deleteEmptyFolders(
|
|
1600
|
+
await deleteEmptyFolders(absoluteOldPath);
|
|
1601
|
+
const oldThumbFolder = path6.join(getPublicPath("/images"), oldRelativePath);
|
|
1602
|
+
await deleteEmptyFolders(oldThumbFolder);
|
|
1601
1603
|
sendEvent({ type: "complete", renamed, newPath });
|
|
1602
1604
|
controller.close();
|
|
1603
1605
|
return;
|