fix: remove unnecessary item_path definition in delete fs api

This commit is contained in:
jelveh
2024-12-12 18:07:50 -08:00
parent 06aeae518b
commit c792f4a345

View File

@@ -51,7 +51,6 @@ module.exports = eggspress('/delete', {
// try to delete each path in the array one by one (if glob, resolve first)
// TODO: remove this pseudo-batch
for ( const item_path of paths ) {
let item_path = item_path;
const target = await (new FSNodeParam('path')).consolidate({
req: { fs: req.fs, user },
getParam: () => item_path,