pub fn rename_sync(from: &str, to: &str) -> Result<(), JsValue>
Synchronously renames (moves) the file or directory from from to to.
from
to