/// <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);
		}
		/// <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>
		/// Initialize a new object representing a directory on the FTP server
		/// </summary>
		/// <param name="cl">The client this object is associated with</param>
		/// <param name="parent">The parent directory (if any)</param>
		/// <param name="listing">The file listing object that was parsed to get this object's data</param>
		public FtpDirectory(ThinkAway.Net.FTP.FtpClient cl, FtpDirectory parent, FtpListItem listing)
			: base(cl, string.Format("{0}/{1}", parent.FullName, listing.Name)) {
			this.LastWriteTime = listing.Modify;
			this.Parent = parent;
		}
Exemple #4
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) { }