Skip to content

file.move

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Move (rename) a file or directory, replacing any existing file at newPath. Returns null on success, or an error.

Parameters

Parameter Default Value Note
oldPath
newPath

Return value

None.

Notes

Example

import "file"
file.move "old_name.txt", "new_name.txt"

Clone this wiki locally