Directory parent

The directory containing this. If this is a root directory, returns this.

Source

Directory get parent => new Directory(parentOf(path));