mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
feat: Add method to IcdFile for getting the length in bytes of a specified file
This commit is contained in:
parent
a26783bd67
commit
40330d0007
1 changed files with 6 additions and 0 deletions
|
|
@ -98,6 +98,12 @@ namespace ICD.Common.Utils.IO
|
||||||
return File.GetCreationTime(path);
|
return File.GetCreationTime(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[PublicAPI]
|
||||||
|
public static long GetLength(string path)
|
||||||
|
{
|
||||||
|
return new FileInfo(path).Length;
|
||||||
|
}
|
||||||
|
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public static IcdFileStream Create(string path)
|
public static IcdFileStream Create(string path)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue