For a library for resolving file system paths, the first results are isaacs/node-glob (This library provides robust cross-platform path resolution and filesystem traversal capabilities, specifically focusing on glob pattern matching and directory tree navigation), square/okio (Okio provides a robust, cross-platform file system abstraction that simplifies path manipulation and file operations across different environments, making it a strong fit for your requirements) and mxcl/path.swift (This library provides a fluent, chainable API for path manipulation and file system operations in Swift, directly addressing the need for simplified cross-platform path handling). symfony/filesystem and moteus/lua-path round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Find the best path resolution utilities for your project. Compare top-rated open-source libraries by activity and features to pick the right one.
node-glob is a Node.js library for finding and matching files and directories using glob patterns. It functions as a filesystem traversal tool and path resolution library, enabling the identification of entries within directory trees based on specific search criteria. The project features a virtual filesystem interface, allowing native filesystem methods to be replaced with custom objects. This enables pattern matching against mocked data or non-native storage systems. The toolkit covers a broad range of filesystem operations, including recursive directory traversal, path normalization acros
This library provides robust cross-platform path resolution and filesystem traversal capabilities, specifically focusing on glob pattern matching and directory tree navigation.
Okio is a Java I/O library providing a set of tools for efficient byte-stream processing and file system operations. It functions as a buffered byte stream handler and streaming data transformer, utilizing a cross-platform file system API to manage data movement. The project is distinguished by its use of pooled mutable byte buffers that treat sequences as queues to reduce memory copying and garbage collection churn. It further decouples file operations from the host operating system through an abstraction-based file system, allowing for consistent path manipulation and atomic operations acro
Okio provides a robust, cross-platform file system abstraction that simplifies path manipulation and file operations across different environments, making it a strong fit for your requirements.
Path.swift is a type-safe file system library for Swift that replaces error-prone string manipulation with structured path objects. It provides a unified, chainable interface for constructing, transforming, and managing file system paths, ensuring that path validity is maintained throughout an application's lifecycle. The library distinguishes itself by using value-type data modeling and dynamic member lookup to provide an intuitive, readable syntax for navigating directory structures. It handles complex file system tasks by mapping operations directly to underlying system calls, ensuring con
This library provides a fluent, chainable API for path manipulation and file system operations in Swift, directly addressing the need for simplified cross-platform path handling.
This is a PHP filesystem utility library that provides tools for manipulating files, directories, and symbolic links. It serves as a specialized set of tools for atomic writing, path normalization, recursive directory management, and cross-platform file manipulation. The project features a dedicated atomic file writer that saves content to temporary locations before moving them to a final destination to prevent data corruption. It includes a recursive directory manager for creating, deleting, and modifying permissions for nested folder structures and their contents, as well as a path normaliz
This library provides a robust set of cross-platform utilities for file system operations and path manipulation, serving as a comprehensive tool for managing file structures in PHP applications.
File system path manipulation library
This library provides cross-platform path manipulation and resolution for Lua, serving as a direct tool for handling file system paths despite lacking built-in globbing support.
Object-oriented file system path manipulation
This library provides an object-oriented approach to path manipulation in Python, offering a fluent API that simplifies cross-platform path handling and file system operations.
For when the keys in an object represent paths, and you want to be able to fetch them regardless of your operating system's preference for path separators (\, /).
This library provides a focused utility for normalizing and accessing object keys as file paths across different operating systems, directly addressing the need for cross-platform path handling.
rimraf is a Node.js recursive file deletion tool and cross-platform filesystem utility. It provides both a programmatic library and a command-line interface for removing files and directories and all of their contained contents across different operating systems. The utility supports glob-based file deletion, allowing the removal of items that match specific wildcard patterns rather than just literal paths. It also includes the ability to abort deletion processes mid-execution and apply custom predicate-based filtering to exclude specific files or folders. The project covers broad filesystem
This is a specialized utility for recursive file deletion and glob-based cleanup rather than a general-purpose library for path manipulation and resolution.
php-xdg-base-dir is a PHP library and system path resolver designed to identify standard filesystem locations for application configuration, cache, and runtime files. It provides an implementation of the XDG Base Directory specification to organize user-specific data and configuration across different platforms. The library resolves directory paths by mapping standard categories to filesystem locations based on Freedesktop.org standards. It manages cross-platform file organization by detecting the operating system and applying corresponding default paths. The resolution process utilizes a pr
This library focuses specifically on resolving standard XDG base directory locations rather than providing a general-purpose API for cross-platform path manipulation, globbing, or complex file system operations.
This project provides a PHP implementation of a filesystem iterator designed to filter collections of files based on naming conventions and custom rule sets. It functions as a specialized utility that extends the standard library to include or exclude files from a collection during iteration. The tool isolates target files by applying prefix and suffix filtering, as well as custom exclusion rules. It supports recursive directory traversal, allowing the application of these filters at every level of a deep folder scan. The project covers broader filesystem management capabilities, specificall
This library is a specialized utility for filtering and iterating over file collections rather than a general-purpose tool for cross-platform path manipulation and resolution.
wslu is a collection of integration tools and command-line utilities designed to manage the interaction between the Windows Subsystem for Linux and the Windows host. It provides a suite of tools for path translation, host interop, and system maintenance to bridge the gap between the Linux shell and the host operating system. The project enables the launching of host applications and the creation of Windows desktop shortcuts to trigger Linux commands. It features a programmable interface for executing system tasks, accessing host environment variables, and integrating with the Windows clipboar
This is a collection of command-line utilities for WSL-to-Windows interoperability rather than a general-purpose programming library for cross-platform path manipulation and globbing.
paths-filter is a GitHub Actions path filter and git change detector designed to trigger conditional workflow steps by identifying modified files. It serves as a path-based change metadata generator that determines if specific files or directories have changed to drive automation logic in CI pipelines. The tool identifies modified files between commits or branches using configurable inclusion and exclusion filters. It exports boolean flags, modified filename lists, and file counts to allow downstream automation steps to execute only when specific criteria are met. The project provides capabi
This tool is a GitHub Action designed for CI/CD workflow automation rather than a general-purpose library for cross-platform file system path manipulation and resolution.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| isaacs/node-glob | 8.7K | TypeScript | NOASSERTION | |
| square/okio | 9K | Kotlin | apache-2.0 | |
| mxcl/path.swift |
| 959 |
| Swift |
| Unlicense |
| symfony/filesystem | 4.6K | PHP | MIT |
| moteus/lua-path | 90 | Lua | MIT |
| jaraco/path.py | 1.1K | Python | — |
| bcoe/any-path | 4 | JavaScript | ISC |
| isaacs/rimraf | 5.8K | TypeScript | BlueOak-1.0.0 |
| dnoegel/php-xdg-base-dir | 6.3K | PHP | MIT |
| sebastianbergmann/php-file-iterator | 7.5K | PHP | BSD-3-Clause |