Conesoft.Files
1.7.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Conesoft.Files --version 1.7.3
NuGet\Install-Package Conesoft.Files -Version 1.7.3
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="Conesoft.Files" Version="1.7.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Conesoft.Files" Version="1.7.3" />
<PackageReference Include="Conesoft.Files" />
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 Conesoft.Files --version 1.7.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Conesoft.Files, 1.7.3"
#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 Conesoft.Files@1.7.3
#: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=Conesoft.Files&version=1.7.3
#tool nuget:?package=Conesoft.Files&version=1.7.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
files
tiny example
adapted from realworld use
var logfile = Directory.From("SomeRoot") / "Scheduler" / Filename.From(DateTime.Today.ToShortDateString(), "md");
await logfile.AppendText($"- **{task.GetType().Name}** *executed* ");
instead of
var logPath = System.IO.Path.Combine("SomeRoot", "Scheduler", $"{DateTime.Today.ToShortDateString()}.md");
await System.IO.File.AppendAllTextAsync(logPath, $"- **{task.GetType().Name}** *executed* ");
reading/writing objects
var data = await File.From("some\path.json").ReadFromJson<SomeType>();
File.From("some\other path.json").WriteAsJson(data);
temporary directories
{
using var temp = Directory.Common.Temporary();
await (temp / Filename.From("some temporary", "tmp")).WriteBytes(somebytes);
// temporary directory gets deleted when out of scope
}
watching a folder
void PrettyPrint(string title, File[] files)
{
if(files.Length > 0)
{
Console.WriteLine($"{title} ({files.Length})");
foreach(var file in files)
{
Console.WriteLine(file);
}
Console.WriteLine();
}
}
await foreach(var files in Directory.From("some\path"))
{
PrettyPrint("ALL FILES", files.All);
PrettyPrint("ADDED FILES", files.Added);
PrettyPrint("CHANGED FILES", files.Changed);
PrettyPrint("DELETED FILES", files.Deleted);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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 was computed. 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 was computed. 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.
-
net6.0
- System.Text.Json (>= 6.0.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Conesoft.Files:
| Package | Downloads |
|---|---|
|
Conesoft.Users
little library allowing simple cookie based user authentication without a backing database |
|
|
Conesoft.DomainAreas
ASP.NET Core request Rewriter, allowing Areas to be accessed as domains |
|
|
Conesoft.LetsEncrypt
Letsencrypt Wildcard Generation using Dnsimple |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.3.2 | 230 | 8/8/2025 |
| 4.3.1 | 157 | 7/27/2025 |
| 4.3.0 | 246 | 4/20/2025 |
| 4.2.3 | 279 | 3/20/2025 |
| 4.2.2 | 223 | 3/20/2025 |
| 4.2.1 | 233 | 3/16/2025 |
| 4.2.0 | 229 | 3/16/2025 |
| 4.1.5 | 286 | 3/9/2025 |
| 4.1.4 | 205 | 2/26/2025 |
| 4.1.3 | 190 | 2/26/2025 |
| 4.1.2 | 221 | 2/25/2025 |
| 4.1.1 | 207 | 2/21/2025 |
| 4.1.0 | 239 | 2/19/2025 |
| 4.0.7 | 164 | 2/12/2025 |
| 4.0.6 | 296 | 2/5/2025 |
| 4.0.5 | 207 | 2/5/2025 |
| 4.0.4 | 136 | 2/5/2025 |
| 4.0.3 | 209 | 2/4/2025 |
| 4.0.2 | 150 | 2/4/2025 |
| 4.0.1 | 155 | 2/4/2025 |
| 4.0.0 | 157 | 2/4/2025 |
| 3.1.1 | 145 | 2/3/2025 |
| 3.1.0 | 188 | 1/29/2025 |
| 3.0.10 | 168 | 1/26/2025 |
| 3.0.9 | 161 | 1/26/2025 |
| 3.0.8 | 155 | 1/20/2025 |
| 3.0.7 | 233 | 1/12/2025 |
| 3.0.6 | 133 | 1/12/2025 |
| 3.0.5 | 535 | 11/25/2024 |
| 3.0.4 | 130 | 11/25/2024 |
| 3.0.3 | 160 | 11/24/2024 |
| 3.0.2 | 142 | 11/23/2024 |
| 3.0.1 | 143 | 11/23/2024 |
| 3.0.0 | 227 | 11/23/2024 |
| 2.1.3 | 208 | 9/22/2024 |
| 2.1.2 | 143 | 9/22/2024 |
| 2.1.1 | 319 | 7/21/2024 |
| 2.1.0 | 157 | 7/21/2024 |
| 2.0.8 | 139 | 7/20/2024 |
| 2.0.7 | 151 | 7/20/2024 |
| 2.0.6 | 164 | 7/20/2024 |
| 2.0.5 | 147 | 7/20/2024 |
| 2.0.4 | 145 | 7/20/2024 |
| 2.0.3 | 143 | 7/20/2024 |
| 2.0.2 | 135 | 7/20/2024 |
| 2.0.1 | 143 | 7/20/2024 |
| 2.0.0 | 141 | 7/20/2024 |
| 1.9.8 | 155 | 7/19/2024 |
| 1.9.7 | 155 | 7/19/2024 |
| 1.9.6 | 323 | 6/17/2024 |
| 1.9.5 | 150 | 6/17/2024 |
| 1.9.4 | 155 | 6/16/2024 |
| 1.9.3 | 348 | 6/1/2024 |
| 1.9.2 | 196 | 5/26/2024 |
| 1.9.0 | 219 | 5/25/2024 |
| 1.8.5 | 203 | 5/25/2024 |
| 1.8.4 | 185 | 5/24/2024 |
| 1.8.3 | 175 | 5/23/2024 |
| 1.8.2 | 355 | 8/24/2023 |
| 1.8.1 | 333 | 7/31/2023 |
| 1.8.0 | 233 | 7/31/2023 |
| 1.7.9 | 260 | 7/31/2023 |
| 1.7.8 | 241 | 7/31/2023 |
| 1.7.7 | 312 | 7/18/2023 |
| 1.7.6 | 492 | 4/27/2023 |
| 1.7.5 | 255 | 4/27/2023 |
| 1.7.4 | 276 | 4/25/2023 |
| 1.7.3 | 437 | 1/11/2023 |
| 1.7.2 | 423 | 1/11/2023 |
| 1.7.1 | 396 | 12/29/2022 |
| 1.7.0 | 419 | 1/8/2022 |
| 1.6.4 | 1,192 | 7/27/2021 |
| 1.6.3 | 470 | 7/19/2021 |
| 1.6.2 | 477 | 7/19/2021 |
| 1.6.1 | 449 | 7/19/2021 |
| 1.6.0 | 452 | 7/19/2021 |
| 1.5.21 | 882 | 7/4/2021 |
| 1.5.20 | 487 | 7/4/2021 |
| 1.5.18 | 512 | 7/4/2021 |
| 1.5.17 | 493 | 7/4/2021 |
| 1.5.16 | 528 | 7/4/2021 |
| 1.5.15 | 770 | 6/23/2021 |
| 1.5.14 | 488 | 6/23/2021 |
| 1.5.13 | 496 | 6/23/2021 |
| 1.5.12 | 487 | 6/23/2021 |
| 1.5.11 | 520 | 6/23/2021 |
| 1.5.10 | 516 | 6/23/2021 |
| 1.5.9 | 1,787 | 6/22/2021 |
| 1.5.8 | 638 | 6/21/2021 |
| 1.5.7 | 535 | 6/21/2021 |
| 1.5.6 | 532 | 6/21/2021 |
| 1.5.5 | 488 | 6/9/2021 |
| 1.5.4 | 509 | 6/6/2021 |
| 1.5.3 | 788 | 5/26/2021 |
| 1.5.2 | 534 | 5/20/2021 |
| 1.5.1 | 508 | 5/20/2021 |
| 1.5.0 | 497 | 5/17/2021 |
| 1.4.10 | 531 | 5/16/2021 |
| 1.4.6 | 581 | 5/16/2021 |
| 1.4.5 | 583 | 5/16/2021 |
| 1.4.4 | 526 | 5/16/2021 |
| 1.4.3 | 523 | 5/16/2021 |
| 1.4.2 | 718 | 4/26/2021 |
| 1.4.1 | 482 | 4/26/2021 |
| 1.4.0 | 532 | 4/26/2021 |
| 1.3.2 | 912 | 4/11/2021 |
| 1.3.1 | 992 | 3/17/2021 |
| 1.3.0 | 480 | 3/17/2021 |
| 1.2.5 | 498 | 3/16/2021 |
| 1.2.4 | 488 | 3/16/2021 |
| 1.2.3 | 493 | 3/16/2021 |
| 1.2.2 | 504 | 3/16/2021 |
| 1.2.1 | 512 | 3/16/2021 |
| 1.2.0 | 556 | 1/4/2021 |
| 1.1.2 | 2,388 | 11/9/2020 |
| 1.1.1 | 620 | 11/9/2020 |
| 1.0.15 | 586 | 11/9/2020 |
| 1.0.14 | 605 | 11/9/2020 |
| 1.0.13 | 618 | 11/9/2020 |
| 1.0.12 | 793 | 10/9/2020 |
| 1.0.11 | 801 | 9/10/2020 |
| 1.0.10 | 1,139 | 9/8/2020 |
| 1.0.9 | 646 | 8/30/2020 |
| 1.0.8 | 644 | 8/5/2020 |
| 1.0.7 | 1,107 | 7/19/2020 |
| 1.0.6 | 648 | 7/19/2020 |
| 1.0.5 | 712 | 5/2/2020 |
| 1.0.4 | 696 | 5/2/2020 |
| 1.0.3 | 631 | 5/2/2020 |
| 1.0.2 | 620 | 5/2/2020 |
| 1.0.1 | 642 | 5/2/2020 |
| 1.0.0 | 866 | 5/2/2020 |