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

Unified Diff: runtime/bin/file.h

Issue 13654002: Change how File/Directory/Link .delete works. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix windows error codes. Created 7 years, 8 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.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 0895a8466d37fad19e955e56e8b651e2e1c13727..ac5af00491be7cd915b1bcef0364a72d5c580754 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -76,7 +76,8 @@ class File {
kWriteByteRequest = 15,
kReadRequest = 16,
kReadListRequest = 17,
- kWriteListRequest = 18
+ kWriteListRequest = 18,
+ kDeleteLinkRequest = 19
};
~File();
@@ -131,6 +132,7 @@ class File {
static bool Create(const char* path);
static bool CreateLink(const char* path, const char* target);
static bool Delete(const char* path);
+ static bool DeleteLink(const char* path);
static off_t LengthFromPath(const char* path);
static time_t LastModified(const char* path);
static char* LinkTarget(const char* pathname);
« no previous file with comments | « runtime/bin/directory_win.cc ('k') | runtime/bin/file.cc » ('j') | runtime/bin/file_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698