renameByPath method
Rename a file or folder by path.
Example: client.renameByPath('/Documents/old.pdf', 'new.pdf');
Implementation
Future<void> renameByPath(String remotePath, String newName) async {
final resolved = await resolvePath(remotePath);
await renameItem(resolved['uuid'], newName, resolved['type']);
}