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

Rip does not check if parent folders have the same name as deleted files #32

Open
jeiang opened this issue Dec 21, 2022 · 0 comments
Open

Comments

@jeiang
Copy link

jeiang commented Dec 21, 2022

If a file was deleted, and an item with a parent that has the same path of that file was also deleted, rip fail to delete the file.

E.g., assuming graveyard is /trash and current folder is /:

$ touch item
$ rip item
$ mkdir item
$ touch item/file
$ rip item/file
error: Failed to bury file
caused by: Failed to move /item/file to /trash/item/file
caused by: Not a directory (os error 20)

rip will try to move file to /trash/item/file, but does not check if /trash/item exists and is a file.

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

1 participant