System.Net.Tests.FtpWebRequestTest.FileExists C# (CSharp) 메소드

FileExists() 개인적인 정적인 메소드

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

            return false;
        }
    }