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

file_class should have a way to access the fuse object #91

Open
qhe opened this issue Jan 13, 2025 · 1 comment
Open

file_class should have a way to access the fuse object #91

qhe opened this issue Jan 13, 2025 · 1 comment

Comments

@qhe
Copy link

qhe commented Jan 13, 2025

file_class instance may need to access the main fuse object for state information (e.g. database connection, network connection etc.). But the nested class doesn't seem to have any easy way to do that. This is the case in example/xmp.py. And there doesn't seem to be an alternative way to use the stateful file API.

@qhe
Copy link
Author

qhe commented Jan 31, 2025

I can certainly just add the file handle at the last argument of file callbacks. That's what I eventually did.

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