mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-13 04:50:56 +00:00
fix: remove unnecessary item_path definition in delete fs api
Docker Image CI / build-and-push-image (push) Waiting to run
Maintain Release Merge PR / update-release-pr (push) Waiting to run
release-please / release-please (push) Waiting to run
test / test (18.x) (push) Waiting to run
test / test (20.x) (push) Waiting to run
test / test (22.x) (push) Waiting to run
Docker Image CI / build-and-push-image (push) Waiting to run
Maintain Release Merge PR / update-release-pr (push) Waiting to run
release-please / release-please (push) Waiting to run
test / test (18.x) (push) Waiting to run
test / test (20.x) (push) Waiting to run
test / test (22.x) (push) Waiting to run
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user