fox-it / dissect.target

The Dissect module tying all other Dissect modules together. It provides a programming API and command line tools which allow easy access to various data sources inside disk images or file collections (a.k.a. targets).
GNU Affero General Public License v3.0
44 stars 46 forks source link

No option to close a Target #100

Open Kafow opened 1 year ago

Kafow commented 1 year ago

Hey, When opening a target there is no option to close its resources that have opened on the filesystem. For example, consider opening A qcow2 target:

Schamper commented 1 year ago

Hi @Kafow! That is indeed correct and something we wish to clean up. It hasn't been an issue for us so far because most of our use-cases for dissect.target are fairly short-lived programs, so dangling file handles weren't an issue (they'd be cleaned up as the program exits).

If you could create a PR with a start for fixing this, that'd be appreciated!