Skip to content

Commit

Permalink
Output path should not be input path
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Dahlberg committed Jan 16, 2017
1 parent 50812cf commit b8b1f6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bcl2fastq/handlers/bcl2fastq_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def create_config_from_request(self, runfolder, request_body):
raise ArteriaUsageException("A output folder was specified by the request, but the configuration "
"does not allow arbitrary output folder to be specified.")

if os.path.abspath(output) == os.path.abspath(runfolder_input):
raise ArteriaUsageException("The specified output path is the same as the input path. This is not allowed!")

if "samplesheet" in request_data:
samplesheet = request_data["samplesheet"]

Expand Down

0 comments on commit b8b1f6c

Please sign in to comment.