def get_vfs_path(path: Text, path_type: jobs_pb2.PathSpec.PathType) -> Text: if path_type == jobs_pb2.PathSpec.OS: return 'fs/os{}'.format(path) elif path_type == jobs_pb2.PathSpec.TSK: return 'fs/tsk{}'.format(path) elif path_type == jobs_pb2.PathSpec.REGISTRY: return 'registry{}'.format(path) raise errors.UnsupportedPathTypeError(path_type)
def get_vfs_path(path, path_type): if path_type == jobs_pb2.PathSpec.OS: return 'fs/os{}'.format(path) raise errors.UnsupportedPathTypeError(path_type)