Update split_files_to_excel.py
Browse files- split_files_to_excel.py +1 -1
split_files_to_excel.py
CHANGED
@@ -581,7 +581,7 @@ def split_in_df(files):
|
|
581 |
if file_path.endswith('.zip'):
|
582 |
extracted_files = extract_zip(file_path)
|
583 |
processed_files.extend(extracted_files)
|
584 |
-
base_folders.extend([
|
585 |
else:
|
586 |
processed_files.append(file_path)
|
587 |
base_folders.append("")
|
|
|
581 |
if file_path.endswith('.zip'):
|
582 |
extracted_files = extract_zip(file_path)
|
583 |
processed_files.extend(extracted_files)
|
584 |
+
base_folders.extend([os.path.splitext(os.path.basename(file_path))[0]] * len(extracted_files))
|
585 |
else:
|
586 |
processed_files.append(file_path)
|
587 |
base_folders.append("")
|