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

Unified Diff: runtime/bin/file_android.cc

Issue 12691002: dart:io | Add Link class, as sibling to File and Directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reverted patch, including fixes 19774 and 19775. 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_android.cc
diff --git a/runtime/bin/file_android.cc b/runtime/bin/file_android.cc
index 1ff855ada4a46c2dc0eee0011aee6c885d21aaea..bdb8ac1a0a3f85cd97c5b9be18d2cb5d41a6bc72 100644
--- a/runtime/bin/file_android.cc
+++ b/runtime/bin/file_android.cc
@@ -159,6 +159,12 @@ bool File::Create(const char* name) {
}
+bool File::CreateLink(const char* name, const char* target) {
+ int status = TEMP_FAILURE_RETRY(symlink(target, name));
+ return (status == 0);
+}
+
+
bool File::Delete(const char* name) {
int status = TEMP_FAILURE_RETRY(remove(name));
if (status == -1) {

Powered by Google App Engine
This is Rietveld 408576698