kaven-utils - v5.5.1
    Preparing search index...

    Function CopyToDirectory

    • Copies an array of files or directories to a destination directory asynchronously.

      Parameters

      • files: string | string[]

        An array of file or directory paths to be copied.

      • destDir: string

        The destination directory where the files or directories will be copied.

      Returns Promise<void>

      1. "/path/to/source/file.txt" -> "/path/to/destination"
      2. "/path/to/source/directory" -> "/path/to/destination"
      3. ["/path/to/source/file.txt", "/path/to/source/directory"] -> "/path/to/destination"

      3.0.0

      2023-12-06