public FtpFileInfo(FtpConnection ftp, string filePath) { if (filePath == null) { throw new ArgumentNullException("filePath"); } this.OriginalPath = filePath; this.FullPath = filePath; this.ftpConnection = ftp; this.fileName = Path.GetFileName(filePath); }
public FtpDirectoryInfo(FtpConnection ftp, string path) { this.FtpConnection = ftp; this.FullPath = path; }