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)
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)