UNPKG

@aws-cdk/core

Version:

AWS Cloud Development Kit Core Library

22 lines (21 loc) 809 B
import { SymlinkFollowMode } from './options'; /** * Determines whether a given file should be excluded or not based on given * exclusion glob patterns. * * @param exclude exclusion patterns * @param filePath file path to be assessed against the pattern * * @returns `true` if the file should be excluded */ export declare function shouldExclude(exclude: string[], filePath: string): boolean; /** * Determines whether a symlink should be followed or not, based on a FollowMode. * * @param mode the FollowMode. * @param sourceRoot the root of the source tree. * @param realPath the real path of the target of the symlink. * * @returns true if the link should be followed. */ export declare function shouldFollow(mode: SymlinkFollowMode, sourceRoot: string, realPath: string): boolean;