diff build_ctb_gene.py @ 23:9e9f1a97f97b draft

planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc.git commit 504dc929afd0bd35a5a5b90a2bcfb30ee007c481
author sanbi-uwc
date Thu, 19 May 2016 08:58:50 -0400
parents f62c95374715
children dfc610c206af
line wrap: on
line diff
--- 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():