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