Conesoft.Files
1.6.2
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.6.2
NuGet\Install-Package Conesoft.Files -Version 1.6.2
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.6.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Conesoft.Files --version 1.6.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Conesoft.Files, 1.6.2"
#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=1.6.2
// Install Conesoft.Files as a Cake Tool
#tool nuget:?package=Conesoft.Files&version=1.6.2
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 | net5.0 is compatible. 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 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- CsvHelper (>= 27.1.1)
- System.Text.Json (>= 5.0.2)
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 |
---|---|---|
1.9.3 | 68 | 6/1/2024 |
1.9.2 | 87 | 5/26/2024 |
1.9.0 | 102 | 5/25/2024 |
1.8.5 | 100 | 5/25/2024 |
1.8.4 | 90 | 5/24/2024 |
1.8.3 | 75 | 5/23/2024 |
1.8.2 | 187 | 8/24/2023 |
1.8.1 | 188 | 7/31/2023 |
1.8.0 | 142 | 7/31/2023 |
1.7.9 | 126 | 7/31/2023 |
1.7.8 | 133 | 7/31/2023 |
1.7.7 | 183 | 7/18/2023 |
1.7.6 | 257 | 4/27/2023 |
1.7.5 | 137 | 4/27/2023 |
1.7.4 | 151 | 4/25/2023 |
1.7.3 | 312 | 1/11/2023 |
1.7.2 | 296 | 1/11/2023 |
1.7.1 | 266 | 12/29/2022 |
1.7.0 | 261 | 1/8/2022 |
1.6.4 | 882 | 7/27/2021 |
1.6.3 | 317 | 7/19/2021 |
1.6.2 | 314 | 7/19/2021 |
1.6.1 | 311 | 7/19/2021 |
1.6.0 | 314 | 7/19/2021 |
1.5.21 | 667 | 7/4/2021 |
1.5.20 | 337 | 7/4/2021 |
1.5.18 | 356 | 7/4/2021 |
1.5.17 | 344 | 7/4/2021 |
1.5.16 | 371 | 7/4/2021 |
1.5.15 | 558 | 6/23/2021 |
1.5.14 | 327 | 6/23/2021 |
1.5.13 | 346 | 6/23/2021 |
1.5.12 | 340 | 6/23/2021 |
1.5.11 | 374 | 6/23/2021 |
1.5.10 | 364 | 6/23/2021 |
1.5.9 | 1,498 | 6/22/2021 |
1.5.8 | 448 | 6/21/2021 |
1.5.7 | 375 | 6/21/2021 |
1.5.6 | 342 | 6/21/2021 |
1.5.5 | 327 | 6/9/2021 |
1.5.4 | 343 | 6/6/2021 |
1.5.3 | 564 | 5/26/2021 |
1.5.2 | 376 | 5/20/2021 |
1.5.1 | 361 | 5/20/2021 |
1.5.0 | 337 | 5/17/2021 |
1.4.10 | 381 | 5/16/2021 |
1.4.6 | 415 | 5/16/2021 |
1.4.5 | 422 | 5/16/2021 |
1.4.4 | 386 | 5/16/2021 |
1.4.3 | 361 | 5/16/2021 |
1.4.2 | 517 | 4/26/2021 |
1.4.1 | 343 | 4/26/2021 |
1.4.0 | 363 | 4/26/2021 |
1.3.2 | 669 | 4/11/2021 |
1.3.1 | 730 | 3/17/2021 |
1.3.0 | 311 | 3/17/2021 |
1.2.5 | 322 | 3/16/2021 |
1.2.4 | 318 | 3/16/2021 |
1.2.3 | 337 | 3/16/2021 |
1.2.2 | 331 | 3/16/2021 |
1.2.1 | 346 | 3/16/2021 |
1.2.0 | 383 | 1/4/2021 |
1.1.2 | 2,009 | 11/9/2020 |
1.1.1 | 446 | 11/9/2020 |
1.0.15 | 427 | 11/9/2020 |
1.0.14 | 439 | 11/9/2020 |
1.0.13 | 446 | 11/9/2020 |
1.0.12 | 586 | 10/9/2020 |
1.0.11 | 598 | 9/10/2020 |
1.0.10 | 888 | 9/8/2020 |
1.0.9 | 479 | 8/30/2020 |
1.0.8 | 471 | 8/5/2020 |
1.0.7 | 899 | 7/19/2020 |
1.0.6 | 484 | 7/19/2020 |
1.0.5 | 530 | 5/2/2020 |
1.0.4 | 510 | 5/2/2020 |
1.0.3 | 460 | 5/2/2020 |
1.0.2 | 443 | 5/2/2020 |
1.0.1 | 462 | 5/2/2020 |
1.0.0 | 632 | 5/2/2020 |