diff split_file_to_collection.py @ 10:2dae863c8f42 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/split_file_to_collection commit 5d21f3d6a3a84b4737a2091ae0d772471eb389dd
author bgruening
date Thu, 23 May 2024 15:03:47 +0000
parents baabc30154cd
children
line wrap: on
line diff
--- a/split_file_to_collection.py	Thu Nov 23 20:02:01 2023 +0000
+++ b/split_file_to_collection.py	Thu May 23 15:03:47 2024 +0000
@@ -329,6 +329,8 @@
             else:
                 record += line
         # after loop, write final record to file
+        if new_file_counter in fresh_files:
+            new_file.write(header)
         new_file.write(record)
         new_file.close()