Exemple #1
0
 public FtpOperator()
 {
     this.passport = new FtpConnectPassport()
     {
         FtpUri   = null,
         Proxy    = null,
         UserName = "******",
         Password = "******"
     };
 }
Exemple #2
0
 public FtpOperator(FtpConnectPassport passport)
 {
     Trydo(() =>
     {
         this.passport             = passport;
         this.operateDirectoryPath = new FtpOpreateDirectoryPath();
         string _DirectoryPath     = passport.FtpUri.AbsolutePath;
         if (!_DirectoryPath.EndsWith("/"))
         {
             _DirectoryPath += "/";
         }
         this.OperateDirectoryPath.CurrentDirectoryPath = _DirectoryPath;
         if (passport != null && passport.FtpUri != null)
         {
             passport.FtpUri = new Uri(passport.FtpUri.GetLeftPart(UriPartial.Authority));
         }
     });
 }