RP6conrad / ESP-GPS-Logger

GPS logger for Speedsurfing, based on ESP32 & Ublox M8N hardware.
MIT License
28 stars 16 forks source link

Remove extra underscores in file names #15

Closed prichterich closed 1 year ago

prichterich commented 1 year ago

Files downloaded through the web interface on MacOS all start with an underscore ('_', e.g. "_2301301325_Nina2.gpy") that should not be present. The underscore may result from the leading slash that is shown in the file name on the web page, and replaced by an underscore when downloading. It is possible that Windows simply ignores the leading slash, so that this is a macOS-specific problem. The issue exists on different macOS versions (tested 10.14 and 11.7) and with different browsers (tested Safari and Firefox).

Rolzzz commented 1 year ago

Files downloaded through the web interface on MacOS all start with an underscore ('_', e.g. "_2301301325_Nina2.gpy") that should not be present. The underscore may result from the leading slash that is shown in the file name on the web page, and replaced by an underscore when downloading. It is possible that Windows simply ignores the leading slash, so that this is a macOS-specific problem. The issue exists on different macOS versions (tested 10.14 and 11.7) and with different browsers (tested Safari and Firefox).

can confirm on windows I get _Rolz_2301291253.ubx on my file names when I save them.

RP6conrad commented 1 year ago

Just found the rootcause of the _ with downloading : lib fs.h returns file.name() with a leading / (for root dir ?). This is then changed to a underscore with downloading. will be fixed in the next update.

RP6conrad commented 1 year ago

Underscore bug is fixed in the latest SW 5.73.