shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- src*-String
The source path to move
- dest*-String
The destination path
Return
- -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
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space