/// <summary>
        /// Gets the current working FTP directory
        /// </summary>
        /// <returns>A <see cref="String"> representing the current working directory.</see></returns>
        public string GetCurrentDirectory()
        {
            int           buffLength = WINAPI.MAX_PATH + 1;
            StringBuilder str        = new StringBuilder(buffLength);
            int           ret        = WININET.FtpGetCurrentDirectory(_hConnect, str, ref buffLength);

            if (ret == 0)
            {
                Error();
                return(null);
            }

            return(str.ToString());
        }