Is your feature request related to a problem? Please describe.
Some users may experience failure to write files due to improper mounting or drive permissions. Currently, the code detects a mounted drive with the correct path, and crashes with an error on failure. This is not enough if there is a directory pointing nowhere (in the case of improper drive unmounting and remounting) or if the drive has strange permissions.
Describe the solution you'd like
On startup, the code should write a temporary file to the FILEPATH (this line here) and attempt to read it. What's more, this check must determine if the file is being read from a location on the thumb drive or somewhere dynamicallly linked on the SD card. Writing video to the SD card == bad.
Is your feature request related to a problem? Please describe.
Some users may experience failure to write files due to improper mounting or drive permissions. Currently, the code detects a mounted drive with the correct path, and crashes with an error on failure. This is not enough if there is a directory pointing nowhere (in the case of improper drive unmounting and remounting) or if the drive has strange permissions.
Describe the solution you'd like
On startup, the code should write a temporary file to the FILEPATH (this line here) and attempt to read it. What's more, this check must determine if the file is being read from a location on the thumb drive or somewhere dynamicallly linked on the SD card. Writing video to the SD card == bad.