renameFileOrDirectory method
Implementation
Future<void> renameFileOrDirectory(String oldPath, String newPath) async {
try {
await fileOperations.renameFileOrDirectory(oldPath, newPath);
pendingRenameFrom = null;
sendResponse('250 Requested file action completed successfully');
} catch (e) {
pendingRenameFrom = null;
sendResponse('550 Failed to rename');
logger.generalLog('Error renaming $oldPath to $newPath: $e');
}
}