Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.38 KB

File metadata and controls

27 lines (17 loc) · 1.38 KB

VFSBinaryExtensions.GetFileSize(this IVirtualFileSystem, string) Method

Gets the size of a file in bytes.

public static long GetFileSize(this Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystem vfs, string filePath);

Parameters

vfs IVirtualFileSystem

The virtual file system.

filePath System.String

The file path as a string.

Returns

System.Int64
The size in bytes, or -1 if the file doesn't exist.