Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "copy"

Index

Variables

CPROGRESS_THRESHOLD

CPROGRESS_THRESHOLD: number = 1048576 * 5

progress

progress: any = require('progress-stream')

promisedMkdirp

promisedMkdirp: function = promisify<string, any, Function>(mkdirp)

Type declaration

    • (arg: A, arg2: A2): Promise<T>
    • Parameters

      • arg: A
      • arg2: A2

      Returns Promise<T>

promisedReadlink

promisedReadlink: function = promisify(fs.readlink)

Type declaration

    • (arg: A): Promise<T>
    • Parameters

      • arg: A

      Returns Promise<T>

promisedSymlink

promisedSymlink: function = promisify<string, string | Buffer, string, Function>(fs.symlink)

Type declaration

    • (arg: A, arg2: A2, arg3: A3): Promise<T>
    • Parameters

      • arg: A
      • arg2: A2
      • arg3: A3

      Returns Promise<T>

promisedUnlink

promisedUnlink: function = promisify(fs.unlink)

Type declaration

    • (arg: A): Promise<T>
    • Parameters

      • arg: A

      Returns Promise<T>

throttle

throttle: any = require('throttle')

Functions

async

checkAsync

checksBeforeCopyingSync

  • checksBeforeCopyingSync(from: string, to: string, options?: ICopyOptions): void

copyFileAsync

  • copyFileAsync(from: string, to: string, mode: any, options?: ICopyOptions, retriedAttempt?: boolean): Promise<Object>
  • Parameters

    • from: string
    • to: string
    • mode: any
    • Optional options: ICopyOptions
    • Optional retriedAttempt: boolean

    Returns Promise<Object>

copyFileSync

  • copyFileSync(from: string, to: string, mode: string, options?: ICopyOptions): Promise<void>
  • Parameters

    • from: string
    • to: string
    • mode: string
    • Optional options: ICopyOptions

    Returns Promise<void>

copyFileSyncWithProgress

  • copyFileSyncWithProgress(from: string, to: string, options?: ICopyOptions): Promise<Object>
  • Parameters

    Returns Promise<Object>

copyItemAsync

  • copyItemAsync(from: string, inspectData: INode, to: string, options: ICopyOptions): Promise<any>

copyItemSync

  • copyItemSync(from: string, inspectData: INode, to: string, options: ICopyOptions): Promise<void>

copySymlinkAsync

  • copySymlinkAsync(from: string, to: string): Promise<string>
  • Parameters

    • from: string
    • to: string

    Returns Promise<string>

copySymlinkSync

  • copySymlinkSync(from: string, to: string): void
  • Parameters

    • from: string
    • to: string

    Returns void

isDone

next

onConflict

parseOptions

  • parseOptions(options: any | null, from: string): ICopyOptions

resolveConflict

sync

  • sync(from: string, to: string, options?: ICopyOptions): void

validateInput

  • validateInput(methodName: string, from: string, to: string, options?: ICopyOptions): void
  • Parameters

    • methodName: string
    • from: string
    • to: string
    • Optional options: ICopyOptions

    Returns void

visitor

  • A callback for treeWalkerStream. This is called when a node has been found.

    Parameters

    Returns Promise<void>

Generated using TypeDoc