Skip to content

[BUG] Cannot save to the root directory #814

@stannam

Description

@stannam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions