GlobIgnoreStrategy
Ignores file paths based on simple glob patterns.
Initializers
using AlibabaCloud.SDK.ROS.CDK.Core;
new GlobIgnoreStrategy(string AbsoluteRootPath, string[] Patterns);
Name | Type | Description |
---|---|---|
AbsoluteRootPath |
string |
No description. |
Patterns |
string[] |
No description. |
AbsoluteRootPath
Required
- Type: string
Patterns
Required
- Type: string[]
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.
- Type: string
Ignores
private bool Ignores(string AbsoluteFilePath)
Determines whether a given file path should be ignored or not.
- 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;
GlobIgnoreStrategy.Docker(string AbsoluteRootPath, string[] Patterns);
Ignores file paths based on the .dockerignore specification
.
- Type: string
the absolute path to the root directory of the paths to be considered.
- Type: string[]
FromCopyOptions
using AlibabaCloud.SDK.ROS.CDK.Core;
GlobIgnoreStrategy.FromCopyOptions(CopyOptions Options, string AbsoluteRootPath);
Creates an IgnoreStrategy based on the ignoreMode
and exclude
in a CopyOptions
.
- Type: CopyOptions
the CopyOptions
to create the IgnoreStrategy
from.
- Type: string
the absolute path to the root directory of the paths to be considered.
Git
using AlibabaCloud.SDK.ROS.CDK.Core;
GlobIgnoreStrategy.Git(string AbsoluteRootPath, string[] Patterns);
Ignores file paths based on the .gitignore specification
.
- Type: string
the absolute path to the root directory of the paths to be considered.
- Type: string[]
Glob
using AlibabaCloud.SDK.ROS.CDK.Core;
GlobIgnoreStrategy.Glob(string AbsoluteRootPath, string[] Patterns);
Ignores file paths based on simple glob patterns.
- Type: string
the absolute path to the root directory of the paths to be considered.
- Type: string[]