moveSync

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

Moves a file or directory, even across devices (sync)

Params

  1. src*-String

    The source path to moveSync

  2. dest*-String

    The destination path

Example

import { moveSync } from '@blackbyte/sugar/fs';
moveSync('my/cool/dir', 'another/place/for/directory');