Argentini.Halide.H3Storage.GetFileSize C# (CSharp) Method

GetFileSize() public static method

Get the file size in bytes of a file on disk.
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;
        }