Conesoft.Files
4.1.1
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 4.1.1
NuGet\Install-Package Conesoft.Files -Version 4.1.1
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="4.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Conesoft.Files" Version="4.1.1" />
<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 4.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Conesoft.Files, 4.1.1"
#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@4.1.1
#: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=4.1.1
#tool nuget:?package=Conesoft.Files&version=4.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Conesoft.Files
https://www.nuget.org/packages/Conesoft.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 | 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
- Conesoft.Tools (>= 2.1.2)
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 | 161 | 8/8/2025 |
4.3.1 | 102 | 7/27/2025 |
4.3.0 | 209 | 4/20/2025 |
4.2.3 | 212 | 3/20/2025 |
4.2.2 | 181 | 3/20/2025 |
4.2.1 | 183 | 3/16/2025 |
4.2.0 | 173 | 3/16/2025 |
4.1.5 | 227 | 3/9/2025 |
4.1.4 | 148 | 2/26/2025 |
4.1.3 | 143 | 2/26/2025 |
4.1.2 | 166 | 2/25/2025 |
4.1.1 | 149 | 2/21/2025 |
4.1.0 | 169 | 2/19/2025 |
4.0.7 | 132 | 2/12/2025 |
4.0.6 | 206 | 2/5/2025 |
4.0.5 | 145 | 2/5/2025 |
4.0.4 | 118 | 2/5/2025 |
4.0.3 | 155 | 2/4/2025 |
4.0.2 | 117 | 2/4/2025 |
4.0.1 | 123 | 2/4/2025 |
4.0.0 | 124 | 2/4/2025 |
3.1.1 | 118 | 2/3/2025 |
3.1.0 | 148 | 1/29/2025 |
3.0.10 | 127 | 1/26/2025 |
3.0.9 | 119 | 1/26/2025 |
3.0.8 | 123 | 1/20/2025 |
3.0.7 | 172 | 1/12/2025 |
3.0.6 | 106 | 1/12/2025 |
3.0.5 | 334 | 11/25/2024 |
3.0.4 | 110 | 11/25/2024 |
3.0.3 | 137 | 11/24/2024 |
3.0.2 | 116 | 11/23/2024 |
3.0.1 | 113 | 11/23/2024 |
3.0.0 | 173 | 11/23/2024 |
2.1.3 | 169 | 9/22/2024 |
2.1.2 | 118 | 9/22/2024 |
2.1.1 | 226 | 7/21/2024 |
2.1.0 | 128 | 7/21/2024 |
2.0.8 | 110 | 7/20/2024 |
2.0.7 | 123 | 7/20/2024 |
2.0.6 | 137 | 7/20/2024 |
2.0.5 | 131 | 7/20/2024 |
2.0.4 | 114 | 7/20/2024 |
2.0.3 | 118 | 7/20/2024 |
2.0.2 | 111 | 7/20/2024 |
2.0.1 | 125 | 7/20/2024 |
2.0.0 | 125 | 7/20/2024 |
1.9.8 | 127 | 7/19/2024 |
1.9.7 | 127 | 7/19/2024 |
1.9.6 | 234 | 6/17/2024 |
1.9.5 | 123 | 6/17/2024 |
1.9.4 | 140 | 6/16/2024 |
1.9.3 | 246 | 6/1/2024 |
1.9.2 | 149 | 5/26/2024 |
1.9.0 | 158 | 5/25/2024 |
1.8.5 | 153 | 5/25/2024 |
1.8.4 | 154 | 5/24/2024 |
1.8.3 | 140 | 5/23/2024 |
1.8.2 | 278 | 8/24/2023 |
1.8.1 | 269 | 7/31/2023 |
1.8.0 | 209 | 7/31/2023 |
1.7.9 | 203 | 7/31/2023 |
1.7.8 | 199 | 7/31/2023 |
1.7.7 | 270 | 7/18/2023 |
1.7.6 | 370 | 4/27/2023 |
1.7.5 | 214 | 4/27/2023 |
1.7.4 | 243 | 4/25/2023 |
1.7.3 | 394 | 1/11/2023 |
1.7.2 | 379 | 1/11/2023 |
1.7.1 | 350 | 12/29/2022 |
1.7.0 | 369 | 1/8/2022 |
1.6.4 | 1,031 | 7/27/2021 |
1.6.3 | 420 | 7/19/2021 |
1.6.2 | 425 | 7/19/2021 |
1.6.1 | 399 | 7/19/2021 |
1.6.0 | 401 | 7/19/2021 |
1.5.21 | 793 | 7/4/2021 |
1.5.20 | 439 | 7/4/2021 |
1.5.18 | 460 | 7/4/2021 |
1.5.17 | 444 | 7/4/2021 |
1.5.16 | 473 | 7/4/2021 |
1.5.15 | 681 | 6/23/2021 |
1.5.14 | 440 | 6/23/2021 |
1.5.13 | 445 | 6/23/2021 |
1.5.12 | 429 | 6/23/2021 |
1.5.11 | 475 | 6/23/2021 |
1.5.10 | 465 | 6/23/2021 |
1.5.9 | 1,642 | 6/22/2021 |
1.5.8 | 579 | 6/21/2021 |
1.5.7 | 486 | 6/21/2021 |
1.5.6 | 483 | 6/21/2021 |
1.5.5 | 441 | 6/9/2021 |
1.5.4 | 460 | 6/6/2021 |
1.5.3 | 704 | 5/26/2021 |
1.5.2 | 485 | 5/20/2021 |
1.5.1 | 457 | 5/20/2021 |
1.5.0 | 447 | 5/17/2021 |
1.4.10 | 482 | 5/16/2021 |
1.4.6 | 531 | 5/16/2021 |
1.4.5 | 533 | 5/16/2021 |
1.4.4 | 476 | 5/16/2021 |
1.4.3 | 472 | 5/16/2021 |
1.4.2 | 639 | 4/26/2021 |
1.4.1 | 443 | 4/26/2021 |
1.4.0 | 481 | 4/26/2021 |
1.3.2 | 814 | 4/11/2021 |
1.3.1 | 875 | 3/17/2021 |
1.3.0 | 428 | 3/17/2021 |
1.2.5 | 445 | 3/16/2021 |
1.2.4 | 435 | 3/16/2021 |
1.2.3 | 454 | 3/16/2021 |
1.2.2 | 450 | 3/16/2021 |
1.2.1 | 462 | 3/16/2021 |
1.2.0 | 502 | 1/4/2021 |
1.1.2 | 2,198 | 11/9/2020 |
1.1.1 | 569 | 11/9/2020 |
1.0.15 | 534 | 11/9/2020 |
1.0.14 | 553 | 11/9/2020 |
1.0.13 | 567 | 11/9/2020 |
1.0.12 | 724 | 10/9/2020 |
1.0.11 | 734 | 9/10/2020 |
1.0.10 | 1,034 | 9/8/2020 |
1.0.9 | 598 | 8/30/2020 |
1.0.8 | 590 | 8/5/2020 |
1.0.7 | 1,038 | 7/19/2020 |
1.0.6 | 607 | 7/19/2020 |
1.0.5 | 661 | 5/2/2020 |
1.0.4 | 644 | 5/2/2020 |
1.0.3 | 590 | 5/2/2020 |
1.0.2 | 571 | 5/2/2020 |
1.0.1 | 589 | 5/2/2020 |
1.0.0 | 794 | 5/2/2020 |