Skip to content

CapacitorAdapterFs.rename method

CapacitorAdapterFs › rename

Unofficial

Rename or move a file to a new path.

Signature:

rename(realPath: string, newRealPath: string): Promise<void>

Parameters:

Parameter Type Description
realPath string Current file path.
newRealPath string New file path.

Returns: Promise<void>A promise that resolves when the file is renamed.