renameFileOrDirectory abstract method

Future<void> renameFileOrDirectory(
  1. String oldPath,
  2. String newPath
)

Renames a file or directory from the old path to the new path. Both paths are relative to the current working directory. Implementations must handle path resolution and ensure the operation stays within allowed boundaries.

Implementation

Future<void> renameFileOrDirectory(String oldPath, String newPath);