Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmdir deletes non-empty directories recursively #329

Closed
cunlem opened this issue Apr 17, 2023 · 2 comments
Closed

rmdir deletes non-empty directories recursively #329

cunlem opened this issue Apr 17, 2023 · 2 comments

Comments

@cunlem
Copy link

cunlem commented Apr 17, 2023

When device is mounted as FUSE filesystem rmdir command deletes entire directory hierarchies while it should only remove empty ones.

Same issue as with hanwen/go-mtpfs#103

Version: 4.2-1 (Ubuntu 22.04)

@cunlem cunlem changed the title rmdir deletes non-empty directories recurisvly rmdir deletes non-empty directories recursively Apr 17, 2023
@whoozle
Copy link
Owner

whoozle commented Oct 16, 2023

It's default MTP behaviour 😬
Although we should stick to unix way, thanks!

@mnalis
Copy link

mnalis commented Dec 18, 2023

Agreed, attempting to rmdir(2) directory which is non-empty should fail with ENOTEMPTY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants