# HG changeset patch # User sanbi-uwc # Date 1463661150 14400 # Node ID 04f49a2f5ec915d6278fd4972c951ca2843fac0d # Parent 06bd61e33a1827a0d4f1184c17827663aea9264d planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc.git commit 9486c76fae458504e5a97bcbc028a225b8d8284b diff -r 06bd61e33a18 -r 04f49a2f5ec9 build_ctb_gene.py --- a/build_ctb_gene.py Thu May 19 08:21:43 2016 -0400 +++ b/build_ctb_gene.py Thu May 19 08:32:30 2016 -0400 @@ -53,10 +53,10 @@ # retrieve neo4j files to the working gx directory result_file = glob.glob(self.args.mount_point + '/*') for file_name in result_file: - if os.path.isfile(file_name): + if os.path.isdir(file_name): + shutil.copytree(file_name, self.args.outputdir) + elif os.path.isfile(file_name): shutil.copy(file_name, self.args.outputdir) - else: - shutil.copytree(file_name, self.args.outputdir) def main():