class TFS(BaseFileSystem): '淘宝小文件系统' def __init__(self, server_ip, port, app_id, app_key): self.tfs = BaseTFS(server_ip, port, app_id, app_key) def check_file_exist(self, filename, filehash, filetype): return self.tfs.check_file(filename) def put_file(self, filename, filetype, content): return self.tfs.put(filename, content) def delete_file(self, filename): return self.tfs.delete_file(filename)
def __init__(self, server_ip, port, app_id, app_key): self.tfs = BaseTFS(server_ip, port, app_id, app_key)