public long GetFileSize(string path)
        {
            try {
                var fi = new FileInfo(path);
                return fi.Length;