Table of Contents

Class CopyOptions

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

Options applied when copying directories.

public class CopyOptions : ICopyOptions
Inheritance
CopyOptions
Implements
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;
            var copyOptions = new CopyOptions {
                Exclude = new [] { "exclude" },
                Follow = SymlinkFollowMode.NEVER,
                IgnoreMode = IgnoreMode.GLOB
            };

Remarks

ExampleMetadata: fixture=_generated

Constructors

CopyOptions()

public CopyOptions()

Properties

Exclude

Glob patterns to exclude from the copy.

public string[]? Exclude { get; set; }

Property Value

string[]

Remarks

Default: - nothing is excluded

Follow

A strategy for how to handle symlinks.

public SymlinkFollowMode? Follow { get; set; }

Property Value

SymlinkFollowMode?

Remarks

Default: SymlinkFollowMode.NEVER

IgnoreMode

The ignore behavior to use for exclude patterns.

public IgnoreMode? IgnoreMode { get; set; }

Property Value

IgnoreMode?

Remarks

Default: IgnoreMode.GLOB