/// <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); }
//Another version taking FtpFileInfo and FileInfo public bool Download(FTPfileInfo file, FileInfo localFI, bool PermitOverwrite) { return(this.Download(file.FullName, localFI, PermitOverwrite)); }
//Version taking an FtpFileInfo public bool Download(FTPfileInfo file, string localFilename, bool PermitOverwrite) { return(this.Download(file.FullName, localFilename, PermitOverwrite)); }
private void StoreFiles(FTPfileInfo fileInfo) { // Add file to audit list files.Add(fileInfo); // Sum up file sizes totalFileSize += fileInfo.Size; }
private void AddFileData(FTPfileInfo fileInfo) { AddFileData(fileInfo.FullName); }
/// <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; }
/// <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); }
/// <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); }