view move_files.py @ 5:ff4031bfaa22 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/yahs commit 270d2e701478bcf3f7cd1db8e188eb2cd69f5db5
author iuc
date Thu, 01 Aug 2024 11:41:41 +0000
parents d87433f2a54d
children
line wrap: on
line source

import os
import shutil

files = os.listdir()
for file in files:
    if "yahs_out" in file and "final" in file:
        shutil.move(file, "final_outs/" + file)
    elif "yahs_out_init" in file:
        shutil.move(file, "initial_break/" + file)
    elif "_break.agp" in file:
        shutil.move(file, "agp_break/" + file)
    elif "yahs_out" in file and ".agp" in file:
        shutil.move(file, "agp_out/" + file)