Exemple #1
0
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)
Exemple #2
0
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)
Exemple #3
0
 def __init__(self, server_ip, port, app_id, app_key):
     self.tfs = BaseTFS(server_ip, port, app_id, app_key)
Exemple #4
0
 def __init__(self, server_ip, port, app_id, app_key):
     self.tfs = BaseTFS(server_ip, port, app_id, app_key)