Skip to content

[Request]: Add config and plugin path resolution utility #1457

@noah-thor

Description

@noah-thor

Feature or enhancement request details

Context: We currently have a PR to be merged (#1425) that introduces configuration file loading from user home. As part of this PR there are file copy operations from user home to app root.

It would be good to provide a centralized utility enum/framework to provide access to these paths in a consistent way across the codebase. This would prevent common issues, such as improperly escaped URLs being used as file paths.

Example usage: UserConfiguration.path(from: .appRoot, for: .plugins) would return a FilePath to app root plugins folder.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    uxUser experience features and fixes.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions