Closed josephmturner closed 1 year ago
Just to clarify, do you want it to throw an error when trying to do a DELETE on an non-empty directory? Currently I think it just lets you delete directories recursively to simplify that use case.
By "currently", do you mean in hypercore 10?
With hypercore 9 (the current hyper-gateway), attempting to delete a non-empty directory gives a status 500 error.
If Hypercore 10 lets you recursively delete directories, then I'll probably just add a check in the application to warn users that the directory is not empty.
By "currently" I mean hypercore9. I was under the impression that I got recursive directory deletes working, I guess I was wrong there.
Recursive deletes by default is something I'd like to have in the next version. 😅
Being able to do one delete on a dir instead of dozens of requests to do GET/DELETE is nice for UX IMO
Agreed. Ok, I'm glad recursive deletion will be in the next version!
Confirmed working in new version!
Does the new API makes this possible? https://docs.holepunch.to/building-blocks/hyperdrive#await-drive.del-path