@haxall/haxall
    Preparing search index...

    Interface CopySyncOptions

    interface CopySyncOptions {
        dereference?: boolean;
        errorOnExist?: boolean;
        force?: boolean;
        mode?: number;
        preserveTimestamps?: boolean;
        recursive?: boolean;
        verbatimSymlinks?: boolean;
        filter?(source: string, destination: string): boolean;
    }

    Hierarchy

    • CopyOptionsBase
      • CopySyncOptions
    Index

    Properties

    dereference?: boolean

    Dereference symlinks

    false
    
    errorOnExist?: boolean

    When force is false, and the destination exists, throw an error.

    false
    
    force?: boolean

    Overwrite existing file or directory. _The copy operation will ignore errors if you set this to false and the destination exists. Use the errorOnExist option to change this behavior.

    true
    
    mode?: number

    Modifiers for copy operation. See mode flag of ()

    preserveTimestamps?: boolean

    When true timestamps from src will be preserved.

    false
    
    recursive?: boolean

    Copy directories recursively.

    false
    
    verbatimSymlinks?: boolean

    When true, path resolution for symlinks will be skipped

    false
    

    Methods

    • Function to filter copied files/directories. Return true to copy the item, false to ignore it.

      Parameters

      • source: string
      • destination: string

      Returns boolean