Class FtpFileExtensionRule
Only accept files that have the given extension, or exclude files of a given extension.
public class FtpFileExtensionRule : FtpRule
- Inheritance
-
FtpFileExtensionRule
- Inherited Members
- Extension Methods
Constructors
FtpFileExtensionRule(bool, IList<string>)
Only accept files that have the given extension, or exclude files of a given extension.
public FtpFileExtensionRule(bool whitelist, IList<string> exts)
Parameters
whitelist
boolIf true, only files of the given extension are uploaded or downloaded. If false, files of the given extension are excluded.
exts
IList<string>The extensions to match
Properties
Exts
The extensions to match
public IList<string> Exts { get; set; }
Property Value
Whitelist
If true, only files of the given extension are uploaded or downloaded. If false, files of the given extension are excluded.
public bool Whitelist { get; set; }
Property Value
Methods
IsAllowed(FtpListItem)
Checks if the files has the given extension, or exclude files of the given extension.
public override bool IsAllowed(FtpListItem item)
Parameters
item
FtpListItem