Otter SDK Reference
Version:

MaskingContext Class

Represents a masking context that applies include and exclude mask strings against an enumeration of paths or SlimFileSystemInfo objects.

Inheritance Hierarchy

  • object
    • Inedo.IO.MaskingContext

Syntax

public class MaskingContext : System.Runtime.Serialization.ISerializable

Properties

Name Description
Excludes

Gets the exclude masks.

Includes

Gets the include masks.

MatchAll

Gets a value indicating whether only a single include mask of ** was specified without any exclusions, thus indicating that everything will match.

Recurse

Gets a value indicating whether any include mask contains **, which means enumeration of the file system would require recursion.

Methods

Name Description
IsMatch(string path)

Returns a value indicating whether the specified path meets the filter criteria.

ToString

Returns a string representation of the mask.

Fields

Name Description
Default

Mask which will include everything in the top level.

IncludeAll

Mask which will include everything recursively.