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

Delete files to 'trash' dir #191

Open
vidartf opened this issue Jan 5, 2024 · 0 comments
Open

Delete files to 'trash' dir #191

vidartf opened this issue Jan 5, 2024 · 0 comments

Comments

@vidartf
Copy link
Contributor

vidartf commented Jan 5, 2024

The default contents manager in jupyter server will (as far as it can) send deleted files to the OS 'trash', using the send2trash package. Jupyter FS doesn't offer this option, instead files are always deleted in the manner chosen by the pyfilesystem implementation (typically without recovery options).

Since pyfilesystem doesn't have a concept of this, we are not able to it out of the box. One option could be to offer a set of implementations replacing e.g. osfs with a version that can be configured via a trait mirroring the delete_to_trash key of the FileContentsManager.

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

No branches or pull requests

1 participant