mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:10:27 +00:00
IO: Fix FileSystemEntity.get:parent comment.
It claimed that `dir.parent` returns `dir` if `dir` is a root directory. However in reality it always returned a new directory object. R=kustermann@google.com Review-Url: https://codereview.chromium.org/2668653002 .
This commit is contained in:
parent
819182a4c5
commit
c47aa1f1cc
|
@ -653,8 +653,7 @@ abstract class FileSystemEntity {
|
|||
}
|
||||
|
||||
/**
|
||||
* The directory containing [this]. If [this] is a root
|
||||
* directory, returns [this].
|
||||
* The directory containing [this].
|
||||
*/
|
||||
Directory get parent => new Directory(parentOf(path));
|
||||
|
||||
|
|
Loading…
Reference in a new issue