s4cmd.py
def del_files(self, source):
    '''Delete files on S3'''
    src_files = []
    for obj in self.s3walk(source):
      if not obj['is_dir']: # ignore directories
        src_files.append(obj['name'])

    pool = ThreadPool(ThreadUtil, self.opt)
    pool.batch_delete(src_files)
    pool.join()
def del_files(self, source):
    '''Delete files on S3'''
    src_files = []
    for obj in self.s3walk(source):
      if not obj['is_dir']: # ignore directories
        src_files.append(obj['name'])

    pool = ThreadPool(ThreadUtil, self.opt)
    pool.batch_delete(src_files)
    pool.join()
def del_files ( self , source ) : src_files = [ ] for obj in self . s3walk ( source ) : if not obj [ 'is_dir' ] : # ignore directories src_files . append ( obj [ 'name' ] ) pool = ThreadPool ( ThreadUtil , self . opt ) pool . batch_delete ( src_files ) pool . join ( )
Delete files on S3
Delete files on S3