Class FtpSizeRule
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
FtpOperatorWhich operator to use
x
longThe first value, required for all operators
y
longThe second value, only required for BetweenRange and OutsideRange operators.
Properties
Operator
Which operator to use
public FtpOperator Operator { get; set; }
Property Value
X
The first value, required for all operators
public long X { get; set; }
Property Value
Y
The second value, only required for BetweenRange and OutsideRange operators
public long Y { get; set; }
Property Value
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