Beispiel #1
0
        /// <summary>
        /// Retrieves a file from the destination location.
        /// </summary>
        /// <param name="RemotePath">The path of the file to get from the FTP server</param>
        /// <param name="LocalFile">The path of the local file to copy the file contents to</param>
        /// <param name="isBinary">True if the remote file is binary</param>
        override public bool GetFile(String RemotePath, string LocalFile, bool isBinary)
        {
            uint dwFlags = isBinary ? INTERNET_FLAG.TRANSFER_BINARY : INTERNET_FLAG.TRANSFER_ASCII;

            return(WinInet.FtpGetFile(m_hFtp, RemotePath, LocalFile, false, (int)FileAttributes.Normal, (int)dwFlags, 0));
        }