Esempio n. 1
0
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)
Esempio n. 2
0
def get_vfs_path(path, path_type):
    if path_type == jobs_pb2.PathSpec.OS:
        return 'fs/os{}'.format(path)
    raise errors.UnsupportedPathTypeError(path_type)