Skip to content

Commit

Permalink
Merge pull request #176 from sennetconsortium/maxsibilla/issue-192
Browse files Browse the repository at this point in the history
Maxsibilla/issue 192
  • Loading branch information
maxsibilla authored Oct 19, 2023
2 parents 0de96b6 + 4be9542 commit bac6216
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/entity_CRUD/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pathlib import Path

from flask import Blueprint, jsonify, request, Response, current_app, abort, json
import logging
import requests
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit bac6216

Please sign in to comment.