WHOIGit / nes-lter-ims

NES-LTER information system components
MIT License
5 stars 0 forks source link

locating station list Excel file succeeds when it shouldn't for case-insensitive filesystems #105

Closed joannekoch closed 1 year ago

joannekoch commented 1 year ago

fixes #53

To perform case-sensitive comparisons in Python, even if the underlying file system is case-insensitive, compare the filenames directly without any additional transformations. Python's string comparison is case-sensitive by default.

To test: rename /data/raw/en627/metadata/EN627_station_list.xlsx -> en627_station_list.xlsx, rebuild, and run the API station endpoint: /api/stations/en627.csv

Receive the error: 'cannot find station metadata at /data/raw/en627/metadata/EN627_station_list.xlsx' when this test case used to pass even though the filename case does not match.