os_paths 1.0.0
os_paths: ^1.0.0 copied to clipboard
OS-specific standard directories (XDG on Linux/BSD, ~/Library on macOS, %APPDATA% on Windows) for Flutter and Dart apps.
Changelog #
1.0.0 #
- Initial release.
OsPathsresolves standard directories on Linux/BSD (XDG Base Directory Specification), macOS (~/Library) and Windows (%APPDATA%,%LOCALAPPDATA%,%ProgramData%).xdg-user-dirssupport:~/.config/user-dirs.dirsis parsed for localized Desktop/Documents/Downloads/... locations.AppPathsfor per-application directories following each platform's naming conventions, withensure*helpers that create them.ExplicitPathsfor supplying sandboxed Android/iOS directories obtained frompath_provider.- Injectable environment and file reader, so every platform's behaviour is testable from any host.