• Parameters

    • source: string
    • dest: string
    • Optional options: Options

    Returns WithCopyEvents<Promise<CopyOperation[]>>

  • Parameters

    • source: string
    • dest: string
    • callback: ((error, results?) => void)
        • (error, results?): void
        • Parameters

          • error: Error
          • Optional results: CopyOperation[]

          Returns void

    Returns {
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
        on(event, callback): { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...;
    }

    • on:function
      • Parameters

        • event: ERROR
        • callback: ((error, info) => void)
            • (error, info): void
            • Parameters

              • error: Error
              • info: CopyErrorInfo

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: COMPLETE
        • callback: ((info) => void)
            • (info): void
            • Parameters

              • info: CopyOperation[]

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: CREATE_DIRECTORY_START
        • callback: ((info) => void)
            • (info): void
            • Parameters

              • info: CopyOperation

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: CREATE_DIRECTORY_ERROR
        • callback: ((error, info) => void)
            • (error, info): void
            • Parameters

              • error: Error
              • info: CopyOperation

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: CREATE_DIRECTORY_COMPLETE
        • callback: ((info) => void)
            • (info): void
            • Parameters

              • info: CopyOperation

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: CREATE_SYMLINK_START
        • callback: ((info) => void)
            • (info): void
            • Parameters

              • info: CopyOperation

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: CREATE_SYMLINK_ERROR
        • callback: ((error, info) => void)
            • (error, info): void
            • Parameters

              • error: Error
              • info: CopyOperation

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: CREATE_SYMLINK_COMPLETE
        • callback: ((info) => void)
            • (info): void
            • Parameters

              • info: CopyOperation

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: COPY_FILE_START
        • callback: ((info) => void)
            • (info): void
            • Parameters

              • info: CopyOperation

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: COPY_FILE_ERROR
        • callback: ((error, info) => void)
            • (error, info): void
            • Parameters

              • error: Error
              • info: CopyOperation

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

      • Parameters

        • event: COPY_FILE_COMPLETE
        • callback: ((info) => void)
            • (info): void
            • Parameters

              • info: CopyOperation

              Returns void

        Returns { on(event: CopyEventType.ERROR, callback: (error: Error, info: CopyErrorInfo) => void): ...; on(event: CopyEventType.COMPLETE, callback: (info: CopyOperation[]) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_START, callback: (info: CopyOperation) => void): ...; on(event: CopyEventType.CREATE_DIRECTORY_ERRO...

Properties

Properties

events: {
    COMPLETE: COMPLETE;
    COPY_FILE_COMPLETE: COPY_FILE_COMPLETE;
    COPY_FILE_ERROR: COPY_FILE_ERROR;
    COPY_FILE_START: COPY_FILE_START;
    CREATE_DIRECTORY_COMPLETE: CREATE_DIRECTORY_COMPLETE;
    CREATE_DIRECTORY_ERROR: CREATE_DIRECTORY_ERROR;
    CREATE_DIRECTORY_START: CREATE_DIRECTORY_START;
    CREATE_SYMLINK_COMPLETE: CREATE_SYMLINK_COMPLETE;
    CREATE_SYMLINK_ERROR: CREATE_SYMLINK_ERROR;
    CREATE_SYMLINK_START: CREATE_SYMLINK_START;
    ERROR: ERROR;
}

Type declaration

  • COMPLETE: COMPLETE
  • COPY_FILE_COMPLETE: COPY_FILE_COMPLETE
  • COPY_FILE_ERROR: COPY_FILE_ERROR
  • COPY_FILE_START: COPY_FILE_START
  • CREATE_DIRECTORY_COMPLETE: CREATE_DIRECTORY_COMPLETE
  • CREATE_DIRECTORY_ERROR: CREATE_DIRECTORY_ERROR
  • CREATE_DIRECTORY_START: CREATE_DIRECTORY_START
  • CREATE_SYMLINK_COMPLETE: CREATE_SYMLINK_COMPLETE
  • CREATE_SYMLINK_ERROR: CREATE_SYMLINK_ERROR
  • CREATE_SYMLINK_START: CREATE_SYMLINK_START
  • ERROR: ERROR

Generated using TypeDoc