示例#1
0
文件: client.py 项目: kehlanrutan/grr
 def OpenByInode(self,
                 inode: int,
                 stream_name: Optional[str] = None) -> File:
     """Opens a file by inode."""
     request = filesystem_pb2.OpenRequest(inode=inode,
                                          stream_name=stream_name)
     return self._Open(request)
示例#2
0
 def Open(self,
          path: str,
          stream_name: Optional[str] = None) -> File:
   """Opens a file."""
   request = filesystem_pb2.OpenRequest(path=path, stream_name=stream_name)
   return self._Open(request)