# HG changeset patch # User sanbi-uwc # Date 1463662730 14400 # Node ID 9e9f1a97f97b3a5451c5dd26324ec912bb8aad36 # Parent f62c953747157dc2d95343bccb4a196441f8c688 planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc.git commit 504dc929afd0bd35a5a5b90a2bcfb30ee007c481 diff -r f62c95374715 -r 9e9f1a97f97b build_ctb_gene.py --- a/build_ctb_gene.py Thu May 19 08:54:29 2016 -0400 +++ b/build_ctb_gene.py Thu May 19 08:58:50 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.isdir(file_name): + if os.path.isfile(file_name): + shutil.copy2(file_name, self.args.outputdir) + elif os.path.isdir(file_name): shutil.copytree(file_name, self.args.outputdir) - elif os.path.isfile(file_name): - shutil.copy2(file_name, self.args.outputdir) def main():