• Copies a tree structure from the src to dst, allowing to modify the content via onCopyText callback, and determine if copying a certain file or folder is allowed via allowCopy.

    Parameters

    • srcPath: string
    • dstPath: string
    • OptionalonCopyText: ((text: string, fileBase: string) => string)
        • (text, fileBase): string
        • Parameters

          • text: string
          • fileBase: string

          Returns string

    • OptionalallowCopy: ((fileBase: string) => boolean)
        • (fileBase): boolean
        • Parameters

          • fileBase: string

          Returns boolean

    Returns void