public virtual long Length (FilePath path) { // If you call .Length on a file that doesn't exist, an exception is thrown var info2 = new FileInfo (path); return info2.Exists ? info2.Length : 0; }
public long Length() { return(FileHelper.Length(path)); }