<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`DataAdapter`](DataAdapter) › [`rename`](DataAdapter/rename)
## DataAdapter.rename() method
Rename a file or folder.
**Signature:**
```typescript
rename(normalizedPath: string, normalizedNewPath: string): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>normalizedPath</code> | <code>string</code> | current path to file/folder, use [normalizePath()](normalizePath) to normalize beforehand. |
| <code>normalizedNewPath</code> | <code>string</code> | new path to file/folder, use [normalizePath()](normalizePath) to normalize beforehand. |
**Returns:**
`Promise``<void>`