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 44 forks source link

Extend VirtualFilesystem's file mapping methods #611

Open DissectBot opened 6 months ago

DissectBot commented 6 months ago

Currently the .map_file() and .map_file_fh() methods only support mapping file entries. This can be extended to also mapping entries representing directories. This would require the creation of a MappedDirectory class.

On top of that, it might be useful to have a similar way to map symlinks. This is a bit trickier as currently the difference between a file and directory is indicated by a final / in the vfspath parameter.