Fix for getting volume location (#26)
* Fix for getting volume location
This commit is contained in:
parent
4bc951a061
commit
367dc821b0
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,9 @@ class FileEntryScanner(volume_scanner.VolumeScanner):
|
|||
location = getattr(path_spec, 'location', None)
|
||||
while path_spec.HasParent():
|
||||
type_indicator = path_spec.type_indicator
|
||||
if type_indicator == dfvfs_definitions.TYPE_INDICATOR_TSK_PARTITION:
|
||||
if type_indicator in (dfvfs_definitions.TYPE_INDICATOR_GPT,
|
||||
dfvfs_definitions.TYPE_INDICATOR_LVM,
|
||||
dfvfs_definitions.TYPE_INDICATOR_TSK_PARTITION):
|
||||
if location in ('\\', '/'):
|
||||
location = getattr(path_spec, 'location', None)
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue