SoilPulse / MetadataGenerator

The metadata generator guides researchers to the creation of reusable data sets in a webapp.
GNU General Public License v3.0
0 stars 0 forks source link

special characters in downloaded file names #20

Closed jonaslenz closed 1 month ago

jonaslenz commented 5 months ago

I searched for a small zenodo repo for testing and came across one with a slash "/" in the "key" of the metadata, which causes an file not found error, when running main.py: FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Projekte\\SoilPulse\\MetadataGenerator\\downloaded_files\\fawda123/sed_chem_tox-v1.1.zip' 10.5281/zenodo.5075409: https://zenodo.org/api/records/5075409

this seems common, when linking github repos to zenodo --> So we need to check for all path relevant special charakters.

jandevaty commented 1 month ago

Special characters in names are replaced by underscore before downloading within ProjectManager.downloadPublishedFiles() method. List of special characters can be extended there.