SciCatProject / backend-v3

SciCat Data Catalogue Backend
https://scicatproject.github.io/documentation/
BSD 3-Clause "New" or "Revised" License
13 stars 17 forks source link

Protect case sourcefolder=slash #687

Closed minottic closed 2 years ago

minottic commented 2 years ago

Description

This PR prevents the removal of the trailing slash when the dataset sourceFolder is equal to /

Motivation

The trailing slash is removed from sourceFolder, which is fine for normal sourceFolder, but not when it is equal to / because nothing is left over and then it looks like an undefined sourceFolder.

Fixes:

Tests included/Docs Updated?