Пример #1
0
 protected abstract bool InternalGetProperties(string remotePath, FtpFileProperties properties);
 protected override bool InternalGetProperties(string remotePath, FtpFileProperties properties)
 {
     return false;
 }
Пример #3
0
        public override FtpFileProperties GetProperties(string remotePath)
        {
            ArgumentCheck.Assigned(remotePath, "remotePath");

              var fileProperties = new FtpFileProperties("", FtpFileType.Unknown);

              try
              {
            InvokeFtpOperation(FtpOperation.List, () => InternalGetProperties(remotePath, fileProperties));
              }
              catch (FtpException e)
              {
            if (e.ExceptionType != FtpExceptionType.OperationFailure)
            {
              throw;
            }
              }
              return fileProperties;
        }