annotate move_files.py @ 4:d802668bc0fe draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit be65e1846c9d4d63e80c01625e6e5f0d613948fe
author iuc
date Thu, 09 Mar 2023 21:59:20 +0000
parents 1c2056885441
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
1 import os
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
2 import shutil
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
3
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
4 files = os.listdir()
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
5 for file in files:
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
6 if "yahs_out" in file and "final" in file:
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
7 shutil.move(file, "final_outs/" + file)
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
8 elif "yahs_out_init" in file:
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
9 shutil.move(file, "initial_break/" + file)
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
10 elif "_break.agp" in file:
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
11 shutil.move(file, "agp_break/" + file)
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
12 elif "yahs_out" in file and ".agp" in file:
1c2056885441 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 92823b21835509dde34557b6922e1b9a39311069
iuc
parents:
diff changeset
13 shutil.move(file, "agp_out/" + file)