Table of Contents

Class FtpSizeRule

Namespace
FluentFTP.Rules
Assembly
FluentFTP.dll

Only accept files that are of the given size, or within the given range of sizes.

public class FtpSizeRule : FtpRule
Inheritance
FtpSizeRule
Inherited Members
Extension Methods

Constructors

FtpSizeRule(FtpOperator, long, long)

Only accept files that are of the given size, or within the given range of sizes.

public FtpSizeRule(FtpOperator ruleOperator, long x, long y = 0)

Parameters

ruleOperator FtpOperator

Which operator to use

x long

The first value, required for all operators

y long

The second value, only required for BetweenRange and OutsideRange operators.

Properties

Operator

Which operator to use

public FtpOperator Operator { get; set; }

Property Value

FtpOperator

X

The first value, required for all operators

public long X { get; set; }

Property Value

long

Y

The second value, only required for BetweenRange and OutsideRange operators

public long Y { get; set; }

Property Value

long

Methods

IsAllowed(FtpListItem)

Checks if the file is of the given size, or within the given range of sizes.

public override bool IsAllowed(FtpListItem result)

Parameters

result FtpListItem

Returns

bool