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

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