zboxfs / zbox

Zero-details, privacy-focused in-app file system.
https://zbox.io/fs/
Apache License 2.0
1.53k stars 74 forks source link

File should not be accessible after repo is closed #59

Closed burmecia closed 4 years ago

burmecia commented 4 years ago

Currently a opened file is still accessible even after repo is closed. The reason is that an opened file is still holding strong reference to underlying storage object, which prevents storage object from being released. A closed repo must not allow any open file access. This can be achieved by let open file hold weak reference to storage object.