Checks whether two paths refer to the same object in the file system.
Returns a Future<bool>
that completes with the result.
Comparing a link to its target returns false, as does comparing two links that point to the same target. To check the target of a link, use Link.target explicitly to fetch it. Directory links appearing inside a path are followed, though, to find the file system object.
Completes the returned Future with an error if one of the paths points to an object that does not exist.
static Future<bool> identical(String path1, String path2) { IOOverrides overrides = IOOverrides.current; if (overrides == null) { return _identical(path1, path2); } return overrides.fseIdentical(path1, path2); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/FileSystemEntity/identical.html