private static long GetFileSize(string path) { try { return(Filesystem.GetFileSize(path)); } catch { } return(-1); }