Interface CopyOptionsSync

Options controlling the behavior of synchronous methods involving the copying of filepaths. Originally taken from fs-extra, which has the following properties:

  • overwrite -- Whether to overwrite existing filepath during the operation. Defaults to true.
  • errorOnExist -- Whether to throw an error if the destination already exists. Defaults to false.
  • dereference -- Whether to dereference symlinks during the operation. Defaults to false.
  • preserveTimestamps -- Whether to keep the same timestamps that existed in the source files. Defaults to false.
  • filter -- A function to filter which filepaths should be copied. Should return true to copy the item, otherwise false.

Hierarchy

Properties

interpRelativeSource?: "cwd" | "path"

How to interpret the target/destination of the filepath operation when it is provided as a relative filepath.

  • cwd -- The target is resolved relative to the current working directory.
  • path -- The target is resolved relative to the Path instance which calls the method involving this option.

Generated using TypeDoc