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" />
paket add JJ.Framework.IO --version 1.5.6877.41333
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 betweenstring
,Stream
andbyte[]
. 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 writingstructs
to aStream
.GetNumberedFilePath
: A method for inserting numbers in file paths in case the file name already exists.ClearFolder
/ClearFolderRecursive
: Recursively clearing a directory, whereasDirectory.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 betweenstring
,Stream
andbyte[]
. 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 writingstructs
to aStream
.GetNumberedFilePath
: A method for inserting numbers in file paths in case the file name already exists.ClearFolder
/ClearFolderRecursive
: Recursively clearing a directory, whereasDirectory.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.
Dependencies
-
- JetBrains.Annotations (>= 2018.2.1)
- JJ.Framework.Exceptions (>= 1.5.0 && < 1.6.0)
- JJ.Framework.PlatformCompatibility (>= 1.5.0 && < 1.6.0)
- JJ.Framework.Text (>= 1.5.0 && < 1.6.0)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
1.5.6877.41333 | 1,021 | 10/31/2018 |
1.4.6870.34059 | 267 | 10/23/2018 |
1.4.6862.41384 | 432 | 10/15/2018 |
1.3.6681.33428 | 683 | 4/17/2018 |
1.2.6640.39179 | 404 | 3/7/2018 |
1.1.0.31224 | 392 | 3/4/2018 |
1.0.6636.39270 | 420 | 3/3/2018 |