diff --git a/src/routes/entity_CRUD/__init__.py b/src/routes/entity_CRUD/__init__.py index 2790327c..c562dde5 100644 --- a/src/routes/entity_CRUD/__init__.py +++ b/src/routes/entity_CRUD/__init__.py @@ -1,3 +1,5 @@ +from pathlib import Path + from flask import Blueprint, jsonify, request, Response, current_app, abort, json import logging import requests @@ -129,8 +131,7 @@ def multiple_components(): new_directory_path = ingest_helper.get_dataset_directory_absolute_path(dataset, requested_group_uuid, dataset['uuid']) logger.info( f"Creating a directory as: {new_directory_path} with a symbolic link to: {dataset['dataset_link_abs_dir']}") - os.makedirs(new_directory_path) - os.symlink(dataset['dataset_link_abs_dir'], new_directory_path, True) + os.symlink(dataset['dataset_link_abs_dir'], new_directory_path) else: return Response("Required field 'dataset_link_abs_dir' is missing from dataset", 500)