Mercurial > repos > sanbi-uwc > build_ctb_gene
changeset 20:06bd61e33a18 draft
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc.git commit eadb75a0a60406ee628a236da3e48456d330d840
author | sanbi-uwc |
---|---|
date | Thu, 19 May 2016 08:21:43 -0400 |
parents | d60316b849a1 |
children | 04f49a2f5ec9 |
files | build_ctb_gene.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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():