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
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 aFilePathto app root plugins folder.Code of Conduct