Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Unified Diff: runtime/bin/file_system_entity_patch.dart

Issue 12850010: Add FileSystemEntity.identical, to test if two file system objects are the same. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Improve posix versions Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/file_system_entity_patch.dart
diff --git a/runtime/bin/file_system_entity_patch.dart b/runtime/bin/file_system_entity_patch.dart
index 267ab1b5fb94ab2b265c55b46fc0bbe5f80a7451..61e4e9eda5d14318a549056bfdb57ed016333025 100644
--- a/runtime/bin/file_system_entity_patch.dart
+++ b/runtime/bin/file_system_entity_patch.dart
@@ -5,4 +5,6 @@
patch class FileSystemEntity {
/* patch */ static int _getType(String path, bool followLinks)
native "File_GetType";
+ /* patch */ static bool _identical(String file1, String file2)
+ native "File_AreIdentical";
}

Powered by Google App Engine
This is Rietveld 408576698