

def upload_files_in_folder(self, arg, dirname, fnames):
    'Handles the iteration across files within a folder.'
    if utils.match_pattern(dirname, self.ignore):
        return False
    good_names = (nm for nm in fnames if (not utils.match_pattern(nm, self.ignore)))
    for fname in good_names:
        if full_path.client._should_abort_folder_upload(self.upload_key):
            return
        full_path = os.path.join(dirname, fname)
        if os.path.isdir(full_path):
            continue
        obj_name = os.path.relpath(full_path, self.root_folder)
        obj_size = os.stat(full_path).st_size
        self.client.upload_file(self.container, full_path, obj_name=obj_name, return_none=True, ttl=self.ttl)
        self.client._update_progress(self.upload_key, obj_size)

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py FolderUploader.upload_files_in_folder/VarMisuse@68/96 `self`->`full_path`