Management of files
DrChainsaw opened this issue · 1 comments
DrChainsaw commented
Maybe first question to ask is if this package is intended for people like me who only wish to use the disk as an extension of the RAM?
Anyways, it seems like the files created needs to be manually deleted (e.g. by calling pooldelete) when no longer needed, or?
If I want files to be deleted when the DRef is no longer used, is it correct to wrap the DRef in a Ref and register a finalizer for that Ref (while ofc making sure all other parts of the program only interact with the referenced data through some struct wrapping the Ref)?
It seems to work in casual testing but I'm afraid there might be hidden pitfalls with it when let loose in the wild.