view move_files.py @ 4:425e63adcc5d draft

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:34 +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)