Skip to content
Snippets Groups Projects
Commit 7208a7a9 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix filepath for upload_from_galaxy_fs()

parent 575ddd21
No related branches found
No related tags found
2 merge requests!10Release 2.0,!9Release 2.0 (merge dev to master)
......@@ -141,7 +141,7 @@ class LoadData(speciesData.SpeciesData):
for fname, files in folders.items():
if fname and files:
folder_name = fname[len(data_dir_root) + 1:]
folder_name = fname[len(CONTAINER_DATA_DIR_ROOT) + 1:]
logging.info("Creating folder: %s" % folder_name)
folder = self.create_deep_folder(prj_lib, folder_name)
......@@ -183,11 +183,9 @@ class LoadData(speciesData.SpeciesData):
logging.info("Skipping useless file '%s'" % single_file)
continue
single_file_path=os.path.join(CONTAINER_DATA_DIR_ROOT,single_file)
logging.info("Adding file '%s' with type '%s' and name '%s'" % (single_file, ftype, clean_name))
datasets = prj_lib.upload_from_galaxy_fs(
single_file_path,
single_file,
folder=folder,
link_data_only='link_to_files',
file_type=ftype,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment