Describe the bug
PCT crashes without warning if the user tries to save anything to the root directory '/.'
The root directory indicates the top-level directory in the file system hierarchy in macOS or Linux.
To Reproduce
Save anything (e.g., search results, exporting a corpus or transcription file) to the root. This raises an OSError.
Expected behavior
PCT should block users from doing that.
Operating system and PCT version
- OS: all macOS and Linux
- PCT version: 1.5.1