Table of Contents

Class FtpFileExtensionRule

Namespace
FluentFTP.Rules
Assembly
FluentFTP.dll

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 bool

If 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

IList<string>

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

bool

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

Returns

bool