FLUTTER ECOSYSTEM

path

A string-based path manipulation library. All of the path operations you know and love, with solid support for Windows, POSIX (Linux and Mac OS X), and the web.

Latest version
1.9.1
30-day downloads
6.1M
Likes
1.7K
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

The path package provides a robust, cross-platform solution for manipulating file and directory paths in Dart. It supports all major operating systems—including Windows, Linux, macOS, and the web—ensuring consistent behavior regardless of the environment. With intuitive methods for joining, splitting, normalizing, and resolving paths, it simplifies file system navigation and improves code portability. The library is designed to handle edge cases and platform-specific quirks seamlessly.

Use cases
  • Cross-platform file path manipulation
  • Building portable Dart applications
  • Handling file system operations in web apps
  • Resolving relative and absolute paths
  • Parsing and constructing file paths
Key features
  • Supports Windows, POSIX, and web platforms
  • Comprehensive path operations
  • Handles platform-specific path separators
  • Robust normalization and resolution
  • Lightweight and dependency-free
Suitable for
  • Dart developers building multi-platform apps
  • Tools requiring file system path logic
  • Web-based file handling utilities
  • CLI tools with file system interaction
Considerations
  • Not intended for low-level file I/O
  • Does not interact with actual file systems
  • Requires manual handling of file existence checks
  • Limited to string-based path operations
  • No built-in support for symbolic links
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add path

Categories

Source repository

Related projects

Rankings