shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
renameSync
Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs
This method allows you to rename a file or directory synchronously.
Params
- src*-String
The source path to moveSync
- dest*-String
The destination path
- The settings for the operation*-TRenameSyncSettings} [settings={}]
Return
- -String
The new path
Example
import { renameSync } from '@blackbyte/sugar/fs';
renameSync('my/cool/dir', 'another/place/for/directory');Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space