Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/heft > ICopyOperation

ICopyOperation interface

Used to specify a selection of files to copy from a specific source folder to one or more destination folders.

Signature:

export interface ICopyOperation extends IFileSelectionSpecifier 

Extends: IFileSelectionSpecifier

Properties

PropertyModifiersTypeDescription
destinationFoldersstring[]Absolute paths to folders which files or folders should be copied to.
flatten?boolean(Optional) Copy only the file and discard the relative path from the source folder.
hardlink?boolean(Optional) Hardlink files instead of copying.