mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
feat: Add method to IcdFile for getting the length in bytes of a specified file
This commit is contained in:
@@ -98,6 +98,12 @@ namespace ICD.Common.Utils.IO
|
||||
return File.GetCreationTime(path);
|
||||
}
|
||||
|
||||
[PublicAPI]
|
||||
public static long GetLength(string path)
|
||||
{
|
||||
return new FileInfo(path).Length;
|
||||
}
|
||||
|
||||
[PublicAPI]
|
||||
public static IcdFileStream Create(string path)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user