@gallop.software/studio 2.3.41 → 2.3.42
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 +12 -0
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1998,6 +1998,18 @@ async function handleMoveStream(request) {
|
|
|
1998
1998
|
delete meta[key];
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
|
+
const oldThumbRelPath = oldKey.slice(1);
|
|
2002
|
+
const newThumbRelPath = newKey.slice(1);
|
|
2003
|
+
const imagesDir = getPublicPath("images");
|
|
2004
|
+
const oldThumbFolder = path6.join(imagesDir, oldThumbRelPath);
|
|
2005
|
+
const newThumbFolder = path6.join(imagesDir, newThumbRelPath);
|
|
2006
|
+
try {
|
|
2007
|
+
await fs6.access(oldThumbFolder);
|
|
2008
|
+
sourceFolders.add(oldThumbFolder);
|
|
2009
|
+
await fs6.mkdir(path6.dirname(newThumbFolder), { recursive: true });
|
|
2010
|
+
await fs6.rename(oldThumbFolder, newThumbFolder);
|
|
2011
|
+
} catch {
|
|
2012
|
+
}
|
|
2001
2013
|
}
|
|
2002
2014
|
moved.push(itemPath);
|
|
2003
2015
|
if (stats.isDirectory()) {
|