rename method

  1. @override
Future<void> rename(
  1. String oldPath,
  2. String newPathOrName
)
override

Rename a node identified by a path.

This call renames a node. The new name may be a name only or a fully qualified path. The later operation moves the node and all child objects.

@param oldPath the old path of the node @param newName the new name or new path of the node @throws StorageException if the storage backend encounters a problem

Implementation

@override
Future<void> rename(String oldPath, String newPathOrName) async {
  await _finishInit();
  return await _rename(oldPath, newPathOrName);
}