private static bool FileExists(FtpExecutionMode mode, string file) { try { DoDownload(mode, WebRequestMethods.Ftp.DownloadFile, file); return true; } catch (WebException) { } return false; } }