Skip to content

IgnoreStrategy

Represents file path ignoring behavior.

Initializers

using AlibabaCloud.SDK.ROS.CDK.Core;
new IgnoreStrategy();
Name Type Description

Methods

Name Description
Add Adds another pattern.
Ignores Determines whether a given file path should be ignored or not.

Add

private void Add(string Pattern)

Adds another pattern.

PatternRequired

  • Type: string

Ignores

private bool Ignores(string AbsoluteFilePath)

Determines whether a given file path should be ignored or not.

AbsoluteFilePathRequired

  • Type: string

absolute file path to be assessed against the pattern.


Static Functions

Name Description
Docker Ignores file paths based on the .dockerignore specification.
FromCopyOptions Creates an IgnoreStrategy based on the ignoreMode and exclude in a CopyOptions.
Git Ignores file paths based on the .gitignore specification.
Glob Ignores file paths based on simple glob patterns.

Docker

using AlibabaCloud.SDK.ROS.CDK.Core;
IgnoreStrategy.Docker(string AbsoluteRootPath, string[] Patterns);

Ignores file paths based on the .dockerignore specification.

AbsoluteRootPathRequired

  • Type: string

the absolute path to the root directory of the paths to be considered.


PatternsRequired

  • Type: string[]

FromCopyOptions

using AlibabaCloud.SDK.ROS.CDK.Core;
IgnoreStrategy.FromCopyOptions(CopyOptions Options, string AbsoluteRootPath);

Creates an IgnoreStrategy based on the ignoreMode and exclude in a CopyOptions.

OptionsRequired

the CopyOptions to create the IgnoreStrategy from.


AbsoluteRootPathRequired

  • Type: string

the absolute path to the root directory of the paths to be considered.


Git

using AlibabaCloud.SDK.ROS.CDK.Core;
IgnoreStrategy.Git(string AbsoluteRootPath, string[] Patterns);

Ignores file paths based on the .gitignore specification.

AbsoluteRootPathRequired

  • Type: string

the absolute path to the root directory of the paths to be considered.


PatternsRequired

  • Type: string[]

Glob

using AlibabaCloud.SDK.ROS.CDK.Core;
IgnoreStrategy.Glob(string AbsoluteRootPath, string[] Patterns);

Ignores file paths based on simple glob patterns.

AbsoluteRootPathRequired

  • Type: string

the absolute path to the root directory of the paths to be considered.


PatternsRequired

  • Type: string[]