copySync

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs

Copy a file or directory (sync)

Params

  1. src*-String

    The source path to copy

  2. dest*-String

    The destination path

Example

import { copySync } from '@blackbyte/sugar/fs';
 copySync('my/cool/file.jpg', 'my/new/file.jpg');