/// <summary> /// Initializes a new instance of the <see cref="FtpFileSystemOperation" /> class. /// </summary> /// <param name="path">The path of the operation.</param> /// <param name="authentication">The file system authentication.</param> /// <exception cref="System.ArgumentNullException">The path is null.</exception> /// <exception cref="System.ArgumentException">The specified path scheme is not supported.</exception> protected FtpFileSystemOperation(Uri path, IFileSystemAuthentication authentication) { if (path == null) { throw new ArgumentNullException("path", "The path is null."); } if (path.Scheme != Uri.UriSchemeFtp) { throw new ArgumentException("The specified path scheme is not supported.", "path"); } Path = path; Authentication = authentication; Timeout = new TimeSpan(0, 1, 0); }
/// <summary> /// Initializes a new instance of the <see cref="FtpDeleteOperation" /> class. /// </summary> /// <param name="path">The path of the operation.</param> /// <param name="authentication">The file system authentication.</param> public FtpDeleteOperation(Uri path, IFileSystemAuthentication authentication) : base(path, authentication) { }
/// <summary> /// Initializes a new instance of the <see cref="FtpCreateFileOperation" /> class. /// </summary> /// <param name="path">The path of the operation.</param> /// <param name="authentication">The file system authentication.</param> public FtpCreateFileOperation(Uri path, IFileSystemAuthentication authentication) : base(path, authentication) { }
/// <summary> /// Initializes a new instance of the <see cref="FtpFileListingOperation" /> class. /// </summary> /// <param name="path">The path of the operation.</param> /// <param name="authentication">The file system authentication.</param> /// <exception cref="System.ArgumentNullException">The path is null.</exception> /// <exception cref="System.ArgumentException">The specified path scheme is not supported.</exception> public FtpFileListingOperation(Uri path, IFileSystemAuthentication authentication) : base(path, authentication) { }