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

Unified Diff: sdk/lib/io/file_impl.dart

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: Implement Link.CreateSync, use it in file_system_links_test. 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: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index 0ba765cfb34a485ed91e21f7f778ea3d7f63dc95..c4531f2ca3a25104d5308a39beabf7d7324c0bfd 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -299,6 +299,8 @@ class _File extends _FileBase implements File {
external static _create(String path);
+ external static _createLink(String path, String target);
+
void createSync() {
var result = _create(_path);
throwIfError(result, "Cannot create file '$_path'");
« no previous file with comments | « runtime/bin/file_win.cc ('k') | sdk/lib/io/io.dart » ('j') | sdk/lib/io/link.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698