[Request]: Add config and plugin path resolution utility
Feature or enhancement request details
Context: We currently have a PR to be merged (https://github.com/apple/container/pull/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
- [x] I agree to follow this project's Code of Conduct
Created a PR for to address this https://github.com/apple/container/pull/1448, there API likely sill needs some iteration.