Soenneker.Utils.Directory 4.0.905

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.Directory --version 4.0.905
                    
NuGet\Install-Package Soenneker.Utils.Directory -Version 4.0.905
                    
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="Soenneker.Utils.Directory" Version="4.0.905" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.Directory" Version="4.0.905" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.Directory" />
                    
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 Soenneker.Utils.Directory --version 4.0.905
                    
#r "nuget: Soenneker.Utils.Directory, 4.0.905"
                    
#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 Soenneker.Utils.Directory@4.0.905
                    
#: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=Soenneker.Utils.Directory&version=4.0.905
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.Directory&version=4.0.905
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.Directory

A utility library encapsulating various directory methods.

Installation

dotnet add package Soenneker.Utils.Directory

Quick start

using Soenneker.Utils.Directory.Registrars;

services.AddDirectoryUtilAsSingleton();

Then inject IDirectoryUtil wherever you need it.

Common operations

  • GetAllDirectories() - Retrieves all immediate subdirectories in the specified directory.
  • GetAllAsEnumerable() - Retrieves all immediate subdirectories as a list.
  • GetAllDirectoriesRecursively() - Retrieves all subdirectories recursively from the specified directory.
  • GetAllRecursivelyAsEnumerable() - Retrieves all subdirectories recursively as a list.
  • Delete() - Deletes the specified directory and all its contents.
  • DeleteIfExists() - Deletes the directory if it exists.
  • Create() - Creates the directory if it does not exist. Returns true if the directory was created, false if it already existed.
  • TryCreate() - Attempts to create the specified directory.
  • CreateStrict() - Creates the specified directory and throws if it already exists.
  • GetWorkingDirectory() - Gets the working directory of the currently executing assembly.
  • GetDirectoriesOrderedByLevels() - Retrieves a list of directories ordered by their levels. Avoids Split() allocations by counting separators.
  • GetNewTempDirectoryPath() - Generates a new temporary directory path, but does not actually create the directory.

The package also includes 12 additional operations for more specialized cases.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages (22)

Showing the top 5 NuGet packages that depend on Soenneker.Utils.Directory:

Package Downloads
Soenneker.Git.Util

Asynchronous Git operations, repository discovery, and bounded batch processing using bundled Git distributions.

Soenneker.Utils.FileSync

A utility library encapsulating synchronous file IO operations

Soenneker.Utils.Dotnet

A utility library for the dotnet executable

Soenneker.Utils.SHA3

A utility library for SHA-3 hashing

Soenneker.Hashing.Blake3

A high-performance .NET library for BLAKE3 hashing and constant-time verification. Pure C# with optional SIMD acceleration (AVX2 on x64, NEON on ARM).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.916 5,205 8/31/2026
4.0.915 308 8/31/2026
4.0.914 3,462 8/31/2026
4.0.913 3,077 8/31/2026
4.0.912 1,672 8/31/2026
4.0.911 450 8/30/2026
4.0.910 1,195 8/30/2026
4.0.909 2,833 8/30/2026
4.0.908 1,959 8/30/2026
4.0.907 1,894 8/30/2026
4.0.906 5,978 8/29/2026
4.0.905 1,437 8/29/2026
4.0.904 324 8/29/2026
4.0.903 3,815 8/29/2026
4.0.902 21,365 8/26/2026
4.0.901 1,063 8/25/2026
4.0.900 5,315 8/22/2026
4.0.899 1,531 8/22/2026
4.0.898 2,174 8/21/2026
4.0.897 9,382 8/18/2026
Loading failed

Update dependency Soenneker.Extensions.Task to 4.0.127 (#1488)