move

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

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

Params

  1. src*-String

    The source path to move

  2. dest*-String

    The destination path

Return

  1. -Promise

    A promise that will be resolved once the file/directory has been moved…

Example

import { move } from '@blackbyte/sugar/fs';
await move('my/cool/dir', 'another/place/for/directory').then(() => {
   // do something...
});

Todo

  • testsnormal