renameOpfsEntry()
function renameOpfsEntry(
parent,
oldName,
newName,
kind): Promise<void>;
Defined in: @browser/opfs-rename.ts:121
Safely renames one OPFS entry without overwriting an existing target.
Parameters
| Parameter | Type | Description |
|---|---|---|
parent | FileSystemDirectoryHandle | Directory containing the source entry |
oldName | string | Existing source name |
newName | string | Requested target name |
kind | OpfsEntryKind | Source entry kind |
Returns
Promise<void>