@gallop.software/studio 2.3.37 → 2.3.38
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 +9 -0
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1511,6 +1511,15 @@ async function handleRenameStream(request) {
|
|
|
1511
1511
|
sendEvent({ type: "start", total, message: `Renaming folder with ${itemsToUpdate.length} item(s)...` });
|
|
1512
1512
|
if (hasLocalItem) {
|
|
1513
1513
|
await fs6.rename(absoluteOldPath, absoluteNewPath);
|
|
1514
|
+
const imagesDir = getPublicPath("/images");
|
|
1515
|
+
const oldThumbFolder = path6.join(imagesDir, oldRelativePath);
|
|
1516
|
+
const newThumbFolder = path6.join(imagesDir, newRelativePath);
|
|
1517
|
+
try {
|
|
1518
|
+
await fs6.access(oldThumbFolder);
|
|
1519
|
+
await fs6.mkdir(path6.dirname(newThumbFolder), { recursive: true });
|
|
1520
|
+
await fs6.rename(oldThumbFolder, newThumbFolder);
|
|
1521
|
+
} catch {
|
|
1522
|
+
}
|
|
1514
1523
|
}
|
|
1515
1524
|
sendEvent({ type: "progress", current: 1, total, renamed: 1, message: "Renamed folder" });
|
|
1516
1525
|
let renamed = 1;
|