JJ.Framework.IO 1.5.6877.41333

CsvReader FileLock PathParser SafeFileOverwriter GetNumberedFilePath StreamToBytes BytesToStream StreamToString StringToStream StringToBytes BytesToString ReadStruct WriteStruct ClearFolder ClearFolderRecursive GetFolderSize GetFolderSizeRecursive CountFilesRecursive IsFolder IsFile FolderIsEmpty IsReadOnly IsHidden MakeReadOnly MakeWritable ShowFile HideFile ToAbsolutePath ToRelativePath PathsAreEqual AssertFileExists

Install-Package JJ.Framework.IO -Version 1.5.6877.41333
dotnet add package JJ.Framework.IO --version 1.5.6877.41333
<PackageReference Include="JJ.Framework.IO" Version="1.5.6877.41333" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JJ.Framework.IO --version 1.5.6877.41333
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

JJ.Framework.IO

Contains various file functions, functions for working with streams and working with CSV's.

  • CsvReader: A class for reading out CSV files.
  • StreamHelper: Converts between string, Stream and byte[]. Surprisingly different code is required for converting between those three, and this helper class makes it a bit more consistent.
  • BinaryWriterExtensions: Contains some methods for reading and writing structs to a Stream.
  • GetNumberedFilePath: A method for inserting numbers in file paths in case the file name already exists.
  • ClearFolder / ClearFolderRecursive: Recursively clearing a directory, whereas Directory.Delete(path, bool recursive) would delete the directory itself.
  • ApplicationFolderPath: Gets that path without command line parameters, or executable file name, etc.
  • GetFolderSize / GetFolderSizeRecursive: Methods for counting the total number of bytes in a folder, including a recursive variation.
  • CountFilesRecursive
  • IsFolder / IsFile: Checks if a path is regarded to be a folder or a file, which is not always obvious.
  • FolderIsEmpty method.
  • Easily working with file attributes.
  • Converting between relative path and absolute path.
  • A method for comparing two paths, regardless of them being absolute or relative.
  • PathParser: Neatly splits up a file path into its smaller parts.
  • SafeFileOverwriter: First writes to a temporary file and only when all went well, the original file is overwritten. The security settings and file attributes and file properties are retained as the temp file replaces the original.

JJ.Framework.IO

Contains various file functions, functions for working with streams and working with CSV's.

  • CsvReader: A class for reading out CSV files.
  • StreamHelper: Converts between string, Stream and byte[]. Surprisingly different code is required for converting between those three, and this helper class makes it a bit more consistent.
  • BinaryWriterExtensions: Contains some methods for reading and writing structs to a Stream.
  • GetNumberedFilePath: A method for inserting numbers in file paths in case the file name already exists.
  • ClearFolder / ClearFolderRecursive: Recursively clearing a directory, whereas Directory.Delete(path, bool recursive) would delete the directory itself.
  • ApplicationFolderPath: Gets that path without command line parameters, or executable file name, etc.
  • GetFolderSize / GetFolderSizeRecursive: Methods for counting the total number of bytes in a folder, including a recursive variation.
  • CountFilesRecursive
  • IsFolder / IsFile: Checks if a path is regarded to be a folder or a file, which is not always obvious.
  • FolderIsEmpty method.
  • Easily working with file attributes.
  • Converting between relative path and absolute path.
  • A method for comparing two paths, regardless of them being absolute or relative.
  • PathParser: Neatly splits up a file path into its smaller parts.
  • SafeFileOverwriter: First writes to a temporary file and only when all went well, the original file is overwritten. The security settings and file attributes and file properties are retained as the temp file replaces the original.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.5.6877.41333 521 10/31/2018
1.4.6870.34059 142 10/23/2018
1.4.6862.41384 307 10/15/2018
1.3.6681.33428 535 4/17/2018
1.2.6640.39179 239 3/7/2018
1.1.0.31224 240 3/4/2018
1.0.6636.39270 260 3/3/2018