Conesoft.Files
2.0.5
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 2.0.5
NuGet\Install-Package Conesoft.Files -Version 2.0.5
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="2.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Conesoft.Files --version 2.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Conesoft.Files, 2.0.5"
#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.
// Install Conesoft.Files as a Cake Addin #addin nuget:?package=Conesoft.Files&version=2.0.5 // Install Conesoft.Files as a Cake Tool #tool nuget:?package=Conesoft.Files&version=2.0.5
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 | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Conesoft.Tools (>= 0.0.6)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Conesoft.Files:
Package | Downloads |
---|---|
Conesoft.Users
little library allowing simple cookie based user authentication without a backing database |
|
Conesoft.Hosting
default settings for locally hosted aspnet pages |
|
Conesoft.DomainAreas
ASP.NET Core request Rewriter, allowing Areas to be accessed as domains |
|
Conesoft.LetsEncrypt
Letsencrypt Wildcard Generation using Dnsimple |
|
Conesoft.All
meta package for all major Conesoft Nuget libraries |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.5 | 78 | 11/25/2024 |
3.0.4 | 67 | 11/25/2024 |
3.0.3 | 84 | 11/24/2024 |
3.0.2 | 74 | 11/23/2024 |
3.0.1 | 71 | 11/23/2024 |
3.0.0 | 98 | 11/23/2024 |
2.1.3 | 129 | 9/22/2024 |
2.1.2 | 87 | 9/22/2024 |
2.1.1 | 194 | 7/21/2024 |
2.1.0 | 94 | 7/21/2024 |
2.0.8 | 84 | 7/20/2024 |
2.0.7 | 96 | 7/20/2024 |
2.0.6 | 103 | 7/20/2024 |
2.0.5 | 99 | 7/20/2024 |
2.0.4 | 80 | 7/20/2024 |
2.0.3 | 90 | 7/20/2024 |
2.0.2 | 81 | 7/20/2024 |
2.0.1 | 96 | 7/20/2024 |
2.0.0 | 96 | 7/20/2024 |
1.9.8 | 93 | 7/19/2024 |
1.9.7 | 100 | 7/19/2024 |
1.9.6 | 204 | 6/17/2024 |
1.9.5 | 96 | 6/17/2024 |
1.9.4 | 107 | 6/16/2024 |
1.9.3 | 217 | 6/1/2024 |
1.9.2 | 124 | 5/26/2024 |
1.9.0 | 134 | 5/25/2024 |
1.8.5 | 128 | 5/25/2024 |
1.8.4 | 131 | 5/24/2024 |
1.8.3 | 112 | 5/23/2024 |
1.8.2 | 228 | 8/24/2023 |
1.8.1 | 225 | 7/31/2023 |
1.8.0 | 169 | 7/31/2023 |
1.7.9 | 161 | 7/31/2023 |
1.7.8 | 157 | 7/31/2023 |
1.7.7 | 228 | 7/18/2023 |
1.7.6 | 319 | 4/27/2023 |
1.7.5 | 163 | 4/27/2023 |
1.7.4 | 177 | 4/25/2023 |
1.7.3 | 342 | 1/11/2023 |
1.7.2 | 326 | 1/11/2023 |
1.7.1 | 294 | 12/29/2022 |
1.7.0 | 293 | 1/8/2022 |
1.6.4 | 958 | 7/27/2021 |
1.6.3 | 347 | 7/19/2021 |
1.6.2 | 350 | 7/19/2021 |
1.6.1 | 327 | 7/19/2021 |
1.6.0 | 328 | 7/19/2021 |
1.5.21 | 723 | 7/4/2021 |
1.5.20 | 366 | 7/4/2021 |
1.5.18 | 383 | 7/4/2021 |
1.5.17 | 371 | 7/4/2021 |
1.5.16 | 399 | 7/4/2021 |
1.5.15 | 607 | 6/23/2021 |
1.5.14 | 361 | 6/23/2021 |
1.5.13 | 372 | 6/23/2021 |
1.5.12 | 354 | 6/23/2021 |
1.5.11 | 403 | 6/23/2021 |
1.5.10 | 390 | 6/23/2021 |
1.5.9 | 1,565 | 6/22/2021 |
1.5.8 | 493 | 6/21/2021 |
1.5.7 | 404 | 6/21/2021 |
1.5.6 | 400 | 6/21/2021 |
1.5.5 | 358 | 6/9/2021 |
1.5.4 | 370 | 6/6/2021 |
1.5.3 | 624 | 5/26/2021 |
1.5.2 | 405 | 5/20/2021 |
1.5.1 | 374 | 5/20/2021 |
1.5.0 | 362 | 5/17/2021 |
1.4.10 | 395 | 5/16/2021 |
1.4.6 | 449 | 5/16/2021 |
1.4.5 | 454 | 5/16/2021 |
1.4.4 | 400 | 5/16/2021 |
1.4.3 | 392 | 5/16/2021 |
1.4.2 | 557 | 4/26/2021 |
1.4.1 | 357 | 4/26/2021 |
1.4.0 | 393 | 4/26/2021 |
1.3.2 | 726 | 4/11/2021 |
1.3.1 | 785 | 3/17/2021 |
1.3.0 | 341 | 3/17/2021 |
1.2.5 | 353 | 3/16/2021 |
1.2.4 | 344 | 3/16/2021 |
1.2.3 | 367 | 3/16/2021 |
1.2.2 | 364 | 3/16/2021 |
1.2.1 | 375 | 3/16/2021 |
1.2.0 | 411 | 1/4/2021 |
1.1.2 | 2,098 | 11/9/2020 |
1.1.1 | 474 | 11/9/2020 |
1.0.15 | 440 | 11/9/2020 |
1.0.14 | 453 | 11/9/2020 |
1.0.13 | 473 | 11/9/2020 |
1.0.12 | 631 | 10/9/2020 |
1.0.11 | 639 | 9/10/2020 |
1.0.10 | 944 | 9/8/2020 |
1.0.9 | 504 | 8/30/2020 |
1.0.8 | 498 | 8/5/2020 |
1.0.7 | 944 | 7/19/2020 |
1.0.6 | 511 | 7/19/2020 |
1.0.5 | 559 | 5/2/2020 |
1.0.4 | 546 | 5/2/2020 |
1.0.3 | 488 | 5/2/2020 |
1.0.2 | 469 | 5/2/2020 |
1.0.1 | 487 | 5/2/2020 |
1.0.0 | 697 | 5/2/2020 |