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

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

Issue 12812010: dart:io | Add Link.targetSync on all platforms. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix memory leak. Improve OS error for Link.target of a non-link. 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 033380d72006452c4c99bfb3cbb19838555db726..f6fdb84e1a55f41d09529815d42c9477224d96c7 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -301,6 +301,8 @@ class _File extends _FileBase implements File {
external static _createLink(String path, String target);
+ external static _linkTarget(String path);
+
void createSync() {
var result = _create(_path);
throwIfError(result, "Cannot create file '$_path'");

Powered by Google App Engine
This is Rietveld 408576698