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

Unified Diff: runtime/bin/file.h

Issue 17848003: dart:io | Add rename to Link (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix again Created 7 years, 6 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
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index a2bf20de8852535a34bd5f0cce91c60ab5fd713c..39081548d93a6e43f3f04071d89e0ba6898969f1 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -83,10 +83,11 @@ class File {
kWriteFromRequest = 18,
kCreateLinkRequest = 19,
kDeleteLinkRequest = 20,
- kLinkTargetRequest = 21,
- kTypeRequest = 22,
- kIdenticalRequest = 23,
- kStatRequest = 24
+ kRenameLinkRequest = 21,
+ kLinkTargetRequest = 22,
+ kTypeRequest = 23,
+ kIdenticalRequest = 24,
+ kStatRequest = 25
};
enum FileStat {
@@ -154,6 +155,7 @@ class File {
static bool Delete(const char* path);
static bool DeleteLink(const char* path);
static bool Rename(const char* old_path, const char* new_path);
+ static bool RenameLink(const char* old_path, const char* new_path);
static off_t LengthFromPath(const char* path);
static void Stat(const char* path, int64_t* data);
static time_t LastModified(const char* path);
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698