Olve.Paths 0.22.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Olve.Paths --version 0.22.2
                    
NuGet\Install-Package Olve.Paths -Version 0.22.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Olve.Paths" Version="0.22.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Olve.Paths" Version="0.22.2" />
                    
Directory.Packages.props
<PackageReference Include="Olve.Paths" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Olve.Paths --version 0.22.2
                    
#r "nuget: Olve.Paths, 0.22.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Olve.Paths@0.22.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Olve.Paths&version=0.22.2
                    
Install as a Cake Addin
#tool nuget:?package=Olve.Paths&version=0.22.2
                    
Install as a Cake Tool

Olve.Paths

NuGetGitHubLOCNuGet Downloads

A .NET library for working with file and directory paths inspired by Python's pathlib module.

It provides a set of classes and methods to manipulate file paths in a more intuitive and object-oriented way.

Features

  • Object-oriented interface for file and directory paths.
  • Easy navigation and manipulation of paths.
    • Supports the / operator for path joining.
  • Support of different path formats.
    • Currently, only Unix-style paths are supported.

See Olve.Paths.Glob for more information about the globbing functionality.

Installation

Simply install the package via NuGet:

dotnet add package Olve.Paths

Usage

var path = Path.Create("/home/user/documents");

var parent = path.Parent; // /home/user
var folderName = path.Name; // documents

var newPath = path / "newfile.txt"; // /home/user/documents/newfile.txt
var exists = newPath.Exists(); // Check if the file exists
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Olve.Paths:

Package Downloads
Olve.Utilities

Various pieces of utility

Olve.Results

Result type implementation and utilities

Olve.Paths.Glob

Olve.Paths.Glob is a library that provides a set of utilities for working with Olve.Paths paths and glob patterns.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.32.2 66 8/9/2025
0.32.1 75 8/9/2025
0.32.0 130 8/8/2025
0.31.0 203 8/5/2025
0.30.0 41 8/3/2025
0.29.1 42 8/3/2025
0.29.0 42 8/3/2025
0.28.2 14 8/2/2025
0.26.2 435 7/21/2025
0.23.0 202 7/5/2025
0.22.2 112 6/7/2025
0.22.1 98 6/7/2025
0.22.0 100 6/7/2025
0.21.0 99 6/7/2025
0.20.2 264 5/13/2025
0.20.1 197 4/22/2025
0.20.0 175 4/22/2025
0.19.3 165 4/12/2025
0.18.0 167 4/11/2025
0.17.2 168 4/8/2025
0.17.1 160 4/8/2025
0.16.0 117 4/6/2025