public static GetFileSize ( string path ) : System.Int64 | ||
path | string | Path to a file (e.g. "/downloads/file.jpg"). |
return | System.Int64 |
public static Int64 GetFileSize(string path)
{
long fileSize = 0;
if (FileExists(path))
{
FileInfo fi = new FileInfo(H3Storage.MapPath(path));
fileSize = fi.Length;
}
return fileSize;
}