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

Is it possible to trap file creation & deletion as well? #12

Open
abhas opened this issue Apr 6, 2020 · 1 comment
Open

Is it possible to trap file creation & deletion as well? #12

abhas opened this issue Apr 6, 2020 · 1 comment

Comments

@abhas
Copy link

abhas commented Apr 6, 2020

Right now, manualbox traps read access to the ~/secured directory. Any pointers on how the code could be extended to trap file creation, deletion, rename etc?

@kushaldas
Copy link
Owner

For deletion https://github.com/kushaldas/manualbox/blob/master/manualbox/__init__.py#L260

For creation https://github.com/kushaldas/manualbox/blob/master/manualbox/__init__.py#L103

You can just add https://github.com/kushaldas/manualbox/blob/master/manualbox/__init__.py#L173-L176 in both of those functions and then you can easily trap those two calls. @abhas Please let me know if you have any more query.

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

2 participants