Melon.std.fs.renameDirectoryAsync(path, newName)
Renames the target directory.
Status: stable
Returns: Promise<void>
Parameters
Name | Type | Description |
---|---|---|
path | string | The target directory path |
newName | string | The new name |
Example usage
const { renameDirectoryAsync } = Melon.fs;
await renameDirectoryAsync("./myDirectory", "documents");