Cross-platform path manipulation for Dart
open sourceBSD-3-Clausefree
path is the Dart team's string-based path manipulation library for Dart and Flutter: joining, splitting, normalizing and other common operations on paths. Its top-level functions use the current platform's path style, POSIX, Windows or URLs in the browser, and a Context works with a specific style explicitly. It's part of the dart-lang/core repository and published on pub.dev by dart.dev.
Problems it solves
- join file paths in Dart so they work on Windows and Linux
- get the file name or extension from a path in a Flutter app
- normalize relative paths in a Dart command-line tool
Features
- join, split and normalize file paths in Dart
- uses the platform's path style: POSIX, Windows or URLs
- works in the browser as well as on the Dart VM
- explicit contexts for a specific path style
Alternatives
The same job
These do what path does.
- file_selector A Flutter plugin for native file open and save dialogs
- glob Bash-style file and directory globbing for Dart
