rename method Null safety
- String newPath
Renames this directory.
Future<Directory> that completes
with a Directory for the renamed directory.
newPath identifies an existing directory, that directory is
newPath identifies an existing file, the operation
fails and the future completes with an exception.
Future<Directory> rename(String newPath);