Beispiel #1
0
 /// <summary>
 /// Copy from other config but change the remotePath
 /// </summary>
 /// <param name="cfg">Config</param>
 /// <param name="remotePath">RemotePath</param>
 public Cfg(FtpHelper.Cfg cfg, string remotePath)
     : this()
 {
     if (cfg != null)
     {
         Server = cfg.Server; // Path = cfg.Path;
         User   = cfg.User; Password = cfg.Password;
         Port   = cfg.Port; SSL = cfg.SSL;
     }
     Path = remotePath;
 }
Beispiel #2
0
 /// <summary>
 /// Copy from other config
 /// </summary>
 /// <param name="cfg">Config</param>
 public Cfg(FtpHelper.Cfg cfg) : this(cfg, cfg != null ? cfg.Path : null)
 {
 }