コード例 #1
0
ファイル: vfs.py プロジェクト: suraj-testing2/Plants_Book
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)
コード例 #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)