def upload_files_in_folder(self, arg, dirname, fnames):
        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 self.client._should_abort_folder_upload(self.upload_key):
                return
            full_path = os.path.join(dirname, fname)
            if os.path.isdir(full_path):
                # Skip folders; os.walk will include them in the next pass.
                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)
Handles the iteration across files within a folder.
dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py/FolderUploader.upload_files_in_folder