Table of Contents

Class FtpFileNameRule

Namespace
FluentFTP.Rules
Assembly
FluentFTP.dll

Only accept files that have the given name, or exclude files of a given name.

public class FtpFileNameRule : FtpRule
Inheritance
FtpFileNameRule
Inherited Members
Extension Methods

Constructors

FtpFileNameRule(bool, IList<string>)

Only accept files that have the given name, or exclude files of a given name.

public FtpFileNameRule(bool whitelist, IList<string> names)

Parameters

whitelist bool

If true, only files of the given name are downloaded. If false, files of the given name are excluded.

names IList<string>

The files names to match

Properties

Names

The files names to match

public IList<string> Names { get; set; }

Property Value

IList<string>

Whitelist

If true, only files of the given name are uploaded or downloaded. If false, files of the given name are excluded.

public bool Whitelist { get; set; }

Property Value

bool

Methods

IsAllowed(FtpListItem)

Checks if the files has the given name, or exclude files of the given name.

public override bool IsAllowed(FtpListItem item)

Parameters

item FtpListItem

Returns

bool