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

    Function CopyFileOrDirectory

    • Copies a file or a directory from the source path to the destination path asynchronously. If the source is a directory, its entire contents will be recursively copied.

      Parameters

      • src: string

        The source path of the file or directory to be copied.

      • dest: string

        The destination path where the file or directory will be copied.

      Returns Promise<boolean>

      A Promise that resolves to true if the file or directory is copied successfully, or false if it doesn't exist.

      "/path/to/source/directory" -> "/path/to/destination/directory"
      "/path/to/source/file.txt" -> "/path/to/destination/file.txt"

      3.0.0

      2021-08-06