Esempio n. 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);
        }
Esempio n. 2
0
 //Another version taking FtpFileInfo and FileInfo
 public bool Download(FTPfileInfo file, FileInfo localFI, bool PermitOverwrite)
 {
     return(this.Download(file.FullName, localFI, PermitOverwrite));
 }
Esempio n. 3
0
 //Version taking an FtpFileInfo
 public bool Download(FTPfileInfo file, string localFilename, bool PermitOverwrite)
 {
     return(this.Download(file.FullName, localFilename, PermitOverwrite));
 }
Esempio n. 4
0
        private void StoreFiles(FTPfileInfo fileInfo)
        {
            // Add file to audit list
            files.Add(fileInfo);

            // Sum up file sizes
            totalFileSize += fileInfo.Size;
        }
Esempio n. 5
0
 private void AddFileData(FTPfileInfo fileInfo)
 {
     AddFileData(fileInfo.FullName);
 }
Esempio n. 6
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;
 }
Esempio n. 7
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);
 }
Esempio n. 8
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);
 }