CCSWE.nanoFramework.FileStorage 1.1.154

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

Build License NuGet

CCSWE.nanoFramework.FileStorage

An IFileStorage abstraction over the device file system, making storage access testable and swappable across different storage backends.

API

IFileStorage

Method Description
Create(string path) Creates or overwrites a file and returns a FileStream
Delete(string path) Deletes a file
Exists(string path) Returns true if the file exists
GetDirectories(string path) Lists subdirectories under the given path
GetFiles(string path) Lists files in the given directory
OpenRead(string path) Opens an existing file for reading
OpenText(string path) Opens an existing file as a StreamReader
OpenWrite(string path) Opens or creates a file for writing
ReadAllBytes(string path) Reads the entire file as a byte[]
ReadAllText(string path) Reads the entire file as a string
WriteAllBytes(string path, byte[] bytes) Writes a byte[] to a file, replacing any existing content
WriteAllText(string path, string? contents) Writes a string to a file, replacing any existing content

DI Registration

services.AddFileStorage();
Product Compatible and additional computed target framework versions.
.NETnanoFramework netnano1.0 is compatible. 
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
1.1.161 90 10/11/2026
1.1.159 101 10/10/2026
1.1.158 94 10/10/2026
1.1.155 95 10/10/2026
1.1.154 95 10/10/2026
1.1.153 92 10/10/2026
1.1.148 150 8/3/2026
1.1.147 143 7/31/2026
1.1.146 129 7/31/2026
1.1.145 149 7/17/2026
1.1.144 138 7/14/2026
1.1.143 147 7/11/2026
1.1.142 145 7/1/2026
1.1.141 144 6/30/2026
1.1.140 175 6/26/2026
1.1.139 137 6/24/2026
1.1.138 127 6/24/2026
1.1.137 137 6/24/2026
1.1.136 157 6/23/2026
1.1.135 133 6/1/2026
Loading failed