changeset 12:967e0c774dd8 draft

Uploaded
author scottx611x
date Wed, 22 Jun 2016 15:50:22 -0400
parents 9f718726ed86
children 865d5b55cce1
files data_manager_gene_annotation/data_manager/data_manager.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager_gene_annotation/data_manager/data_manager.py	Fri Jun 17 16:36:53 2016 -0400
+++ b/data_manager_gene_annotation/data_manager/data_manager.py	Wed Jun 22 15:50:22 2016 -0400
@@ -30,14 +30,11 @@
 
 
 def url_download(url, name,  workdir):
-    # Create path if it doesn't exist
-    if not os.path.exists(workdir):
-        os.makedirs(workdir)
 
     response = requests.get(url=url, stream=True)
 
     # Create path that we will write the file to
-    file_path = os.path.join(workdir, 'download_{}.dat'.format(name))
+    file_path = 'download_{}.dat'.format(name)
 
     block_size = 10 * 1024 * 1024  # 10MB chunked download
     with open(file_path, 'w+') as f: