AlastairLundy.Resyslib.IO 3.2.0

Prefix Reserved
dotnet add package AlastairLundy.Resyslib.IO --version 3.2.0
                    
NuGet\Install-Package AlastairLundy.Resyslib.IO -Version 3.2.0
                    
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="AlastairLundy.Resyslib.IO" Version="3.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AlastairLundy.Resyslib.IO" Version="3.2.0" />
                    
Directory.Packages.props
<PackageReference Include="AlastairLundy.Resyslib.IO" />
                    
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 AlastairLundy.Resyslib.IO --version 3.2.0
                    
#r "nuget: AlastairLundy.Resyslib.IO, 3.2.0"
                    
#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 AlastairLundy.Resyslib.IO@3.2.0
                    
#: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=AlastairLundy.Resyslib.IO&version=3.2.0
                    
Install as a Cake Addin
#tool nuget:?package=AlastairLundy.Resyslib.IO&version=3.2.0
                    
Install as a Cake Tool

AlastairLundy.Resyslib.IO

Implementations of Interfaces that make working with Files and Directories easier.

It also provides:

  • UnixFilePermissionConverter - A static class that can convert between symbolic unix file permission notation and numeric notation.
  • UnixFilePermissionParser - A static class that can parse Unix File Permission notation in Symbolic or Numeric form to UnixFileMode enum.

NuGet NuGet

Table of Contents

Features

  • Support for creating, deleting (including recursively), or finding parent or recursive directories
  • Support for determining if a path is a file path
  • Support for checking if a directory is empty
  • Support for appending files
  • Support for concatenating files
  • Support for parsing and converting Unix File Permission notations

How to install and use Resyslib.IO

Resyslib.IO can be installed via the .NET SDK CLI, Nuget via your IDE or code editor's package interface, or via the Nuget website.

Package Name Nuget Link .NET SDK CLI command
AlastairLundy.Resyslib.IO AlastairLundy.Resyslib.IO Nuget dotnet add package AlastairLundy.Resyslib.IO

Compatibility

IO Extensions Version series .NET Targets supported
1.2 >= .NET Standard 2.0, .NET Standard 2.1, and .NET 8 and newer
⇐ 1.1 .NET 8 and newer

How to Build Resyslib.IO's code

Requirements

Resyslib.IO requires the latest .NET release SDK to be installed to target all supported TFM (Target Framework Moniker) build targets.

Currently, the required .NET SDK is .NET 9.

The current build targets include:

  • .NET 8
  • .NET 9
  • .NET Standard 2.0
  • .NET Standard 2.1

Any version of the .NET 9 SDK can be used, but using the latest version is preferred.

Versioning new releases

Resyslib.IO aims to follow Semantic versioning with [Major].[Minor].[Build] for most circumstances and an optional .[Revision] when only a configuration change is made, or a new build of a preview release is made.

Pre-releases

Pre-release versions should have a suffix of -alpha, -beta, -rc, or -preview followed by a . and what pre-release version number they are. The number should be incremented by 1 after each release unless it only contains a configuration change, or another packaging, or build change. An example pre-release version may look like 1.1.0-alpha.2 , this version string would indicate it is the 2nd alpha pre-release version of 1.1.0 .

Stable Releases

Stable versions should follow semantic versioning and should only increment the Revision number if a release only contains configuration or build packaging changes, with no change in functionality, features, or even bug or security fixes.

Releases that only implement bug fixes should see the Build version incremented.

Releases that add new non-breaking changes should increment the Minor version. Minor breaking changes may be permitted in Minor version releases where doing so is necessary to maintain compatibility with an existing supported platform, or an existing piece of code that requires a breaking change to continue to function as intended.

Releases that add major breaking changes or significantly affect the API should increment the Major version. Major version releases should not be released with excessive frequency and should be released when there is a genuine need for the API to change significantly for the improvement of the project.

Building for Testing

You can build for testing by building the project within your IDE or VS Code, or manually by entering the following command: dotnet build -c Debug.

If you encounter any bugs or issues, try testing your code with breakpoints in the affected code where appropriate. Failing that, please report the issue if one doesn't already exist for the bug(s).

Building for Release

Before building a release build, ensure you apply the relevant changes to the AlastairLundy.Resyslib.IO.csproj file:

  • Update the Package Version variable
  • Update the project file's Changelog

You should ensure the project builds under debug settings before producing a release build.

Producing Release Builds

To manually build for release, enter dotnet build -c Release /p:ContinuousIntegrationBuild=true for a release with SourceLink enabled or just dotnet build -c Release for a build without SourceLink.

Builds should generally always include SourceLink and symbol packages if intended for wider distribution.

How to Contribute to Resyslib.IO

Thank you in advance for considering contributing to Resyslib.IO.

Please see the CONTRIBUTING.md file for code and localization contributions.

If you want to file a bug report or suggest a potential feature to add, please check out the GitHub issues page to see if a similar or identical issue is already open. If there is not already a relevant issue filed, please file one here and follow the respective guidance from the appropriate issue template.

Thanks.

Roadmap

Resyslib.IO aims to make working with files and directories in C# easier.

All stable releases must be stable and should not contain regressions.

Future updates should aim focus on one or more of the following:

  • Adding extension methods that improve ease of use
  • Adding new interfaces or classes that add useful directory or file related features that aren't an exact copy of an existing feature in .NET .
  • Enhancing existing extension methods, classes, or interfaces.

License

This library is licensed under the MPL 2.0 license.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.2.0 232 6/18/2025
3.1.0 250 6/3/2025

## Changes

- Add ``UnixFileModeParser``  to replace ``UnixFilePermissionParser`` @alastairlundy (#5)
- Bump AlastairLundy.DotExtensions from 7.1.1 to 7.2.0