Sharpen.FileHelper.Length C# (CSharp) Method

Length() public method

public Length ( FilePath path ) : long
path FilePath
return long
		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;
		}

Usage Example

Example #1
0
 public long Length()
 {
     return(FileHelper.Length(path));
 }