예제 #1
0
        /// <summary>
        /// Obtain datetimestamp for remote file
        /// </summary>
        /// <param name="file"></param>
        /// <returns></returns>
        public DateTime GetDateTimestamp(FTPfileInfo file)
        {
            DateTime result = this.GetDateTimestamp(file.Filename);

            file.FileDateTime = result;
            return(result);
        }
예제 #2
0
 /// <summary>
 /// Another version taking FtpFileInfo and FileInfo
 /// </summary>
 /// <param name="file"></param>
 /// <param name="localFI"></param>
 /// <param name="PermitOverwrite"></param>
 /// <returns></returns>
 public bool Download(FTPfileInfo file, FileInfo localFI, bool PermitOverwrite)
 {
     return(this.Download(file.FullName, localFI, PermitOverwrite));
 }
예제 #3
0
 /// <summary>
 /// Version taking an FtpFileInfo
 /// </summary>
 /// <param name="file"></param>
 /// <param name="localFilename"></param>
 /// <param name="PermitOverwrite"></param>
 /// <returns></returns>
 public bool Download(FTPfileInfo file, string localFilename, bool PermitOverwrite)
 {
     return(this.Download(file.FullName, localFilename, PermitOverwrite));
 }