Example #1
0
        public FtpFileInfo(FtpConnection ftp, string filePath)
        {
            if (filePath == null)
                throw new ArgumentNullException("fileName");

            base.OriginalPath = filePath;
            base.FullPath = filePath;

            _filePath = filePath;
            _ftp = ftp;

            this._name = Path.GetFileName(filePath);
        }
Example #2
0
 public FtpDirectoryInfo(FtpConnection ftp, string path)
 {
     _ftp = ftp;
     base.FullPath = path;
 }