Catch exception when parsing filesystem (#29)
* Catch exception when parsing filesystem
This commit is contained in:
parent
fd2122cf20
commit
cfcd7624f7
1 changed files with 6 additions and 3 deletions
|
@ -178,9 +178,12 @@ class FileEntryScanner(volume_scanner.VolumeScanner):
|
||||||
'files (inum, filename, part)', self._rows)
|
'files (inum, filename, part)', self._rows)
|
||||||
self._rows = []
|
self._rows = []
|
||||||
|
|
||||||
for sub_file_entry in file_entry.sub_file_entries:
|
try:
|
||||||
self._list_file_entry(
|
for sub_file_entry in file_entry.sub_file_entries:
|
||||||
file_system, sub_file_entry, path_segments, location)
|
self._list_file_entry(
|
||||||
|
file_system, sub_file_entry, path_segments, location)
|
||||||
|
except (OSError, dfvfs_errors.AccessError, dfvfs_errors.BackEndError) as e:
|
||||||
|
log.warning('Unable to list file entries: {0!s}'.format(e))
|
||||||
|
|
||||||
def get_volume_extents(self, image_path):
|
def get_volume_extents(self, image_path):
|
||||||
"""Gets the extents of all volumes.
|
"""Gets the extents of all volumes.
|
||||||
|
|
Loading…
Reference in a new issue