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

Support special directory that can always skip trash #5385

Open
SandyXSD opened this issue Dec 17, 2024 · 1 comment
Open

Support special directory that can always skip trash #5385

SandyXSD opened this issue Dec 17, 2024 · 1 comment
Labels
kind/feature New feature or request

Comments

@SandyXSD
Copy link
Contributor

What would you like to be added:
Configure a directory (must be empty?) so that all files created under it will be deleted directly, ignoring the trash.

Why is this needed:
Some application may create a lot of temporary files that should be purged completely no matter the trash is enabled or not.

@SandyXSD SandyXSD added the kind/feature New feature or request label Dec 17, 2024
@SandyXSD
Copy link
Contributor Author

We may use the special attribute bit that can be set by chattr:

s      When a file with the 's' attribute set is deleted, its blocks are zeroed and written back to the disk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant