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.
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.