@gallop.software/studio 2.3.42 → 2.3.43

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.
@@ -1841,6 +1841,10 @@ async function handleMoveStream(request) {
1841
1841
  currentFile: path6.basename(vItem.newKey)
1842
1842
  });
1843
1843
  }
1844
+ const newFolderPath = getPublicPath(newKey);
1845
+ await deleteEmptyFolders(newFolderPath);
1846
+ const newThumbFolder = path6.join(getPublicPath("images"), newKey.slice(1));
1847
+ await deleteEmptyFolders(newThumbFolder);
1844
1848
  moved.push(itemPath);
1845
1849
  continue;
1846
1850
  }
@@ -1912,6 +1916,11 @@ async function handleMoveStream(request) {
1912
1916
  if (hasProcessedThumbnails) {
1913
1917
  await deleteLocalThumbnails(newKey);
1914
1918
  }
1919
+ await deleteEmptyFolders(path6.dirname(newAbsolutePath));
1920
+ if (hasProcessedThumbnails) {
1921
+ const newThumbRelPath = newKey.slice(1);
1922
+ await deleteEmptyFolders(path6.join(getPublicPath("images"), newThumbRelPath));
1923
+ }
1915
1924
  newEntry.c = entry?.c;
1916
1925
  delete meta[oldKey];
1917
1926
  meta[newKey] = newEntry;