diff --git a/uds.py b/uds.py index 53693d8..86af2a3 100755 --- a/uds.py +++ b/uds.py @@ -348,8 +348,8 @@ def bunch(self, file_part, path='.'): files_upload.append(name) elif file_part == "?": files_upload.append(name) - for name_data in range(len(files_upload)): # Upload all files put in list - full_path = str(path) + "/" + str(files_upload[name_data]) + for _, file in enumerate(files_upload): # Upload all files put in list + full_path = str(path) + "/" + str(file) self.do_chunked_upload(full_path) print() self.update(mode=1) # Necessary update to data