示例#1
0
 /// <summary>
 /// Cleanup an release resources
 /// </summary>
 public virtual void Dispose()
 {
     this._client        = null;
     this._path          = null;
     this._lastWriteTime = DateTime.MinValue;
     this._length        = -1;
 }
示例#2
0
 /// <summary>
 /// Constructs a new FtpFile object
 /// </summary>
 /// <param name="cl">The FtpClient to associate this FtpFile with</param>
 /// <param name="parent">The parent FtpDirectory if any</param>
 /// <param name="listing">The FtpListItem object that was acquired from parsing flie list from the server.</param>
 public FtpFile(ThinkAway.Net.FTP.FtpClient cl, FtpDirectory parent, FtpListItem listing)
     : base(cl, string.Format("{0}/{1}", parent.FullName, listing.Name))
 {
     this.Length        = listing.Size;
     this.LastWriteTime = listing.Modify;
     this.Parent        = parent;
 }
示例#3
0
 /// <summary>
 /// Create new object lined to the specified client and pointing at the specified path
 /// </summary>
 /// <param name="client">The client to link this objec to</param>
 /// <param name="path">The full path of the remote object</param>
 public FtpFileSystemObject(ThinkAway.Net.FTP.FtpClient client, string path)
 {
     this.Client   = client;
     this.FullName = this.CleanPath(path);
 }
示例#4
0
 /// <summary>
 /// Initialize a new object representing a directory on the FTP server
 /// </summary>
 /// <param name="cl">The client this directory will be associated with</param>
 /// <param name="path">The full path of the object on the server</param>
 public FtpDirectory(ThinkAway.Net.FTP.FtpClient cl, string path) : base(cl, path)
 {
 }
		/// <summary>
		/// Cleanup an release resources
		/// </summary>
		public virtual void Dispose() {
			this._client = null;
			this._path = null;
			this._lastWriteTime = DateTime.MinValue;
			this._length = -1;
		}
示例#6
0
 /// <summary>
 /// Constructs a new FtpFile object
 /// </summary>
 /// <param name="cl">The FtpClient to associate this FtpFile with</param>
 /// <param name="path">The remote path to the file</param>
 public FtpFile(ThinkAway.Net.FTP.FtpClient cl, string path) : base(cl, path)
 {
 }