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

Unified Diff: runtime/bin/directory.h

Issue 8277033: Add exists, create and delete to directory implementation on Linux and Mac. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Windows build. Created 9 years, 2 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_in.cc ('k') | runtime/bin/directory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory.h
diff --git a/runtime/bin/directory.h b/runtime/bin/directory.h
index 0c6b7e23c4f1c2d9d6bb6260c423af12b6a0ea06..455e5568906e659bce3323de2e5326b35a0c5884 100644
--- a/runtime/bin/directory.h
+++ b/runtime/bin/directory.h
@@ -10,6 +10,12 @@
class Directory {
public:
+ enum ExistsResult {
+ UNKNOWN,
+ EXISTS,
+ DOES_NOT_EXIST
+ };
+
static void List(const char* path,
bool recursive,
Dart_Port dir_port,
@@ -17,6 +23,12 @@ class Directory {
Dart_Port done_port,
Dart_Port error_port);
+ static ExistsResult Exists(const char* path);
+
+ static bool Create(const char* path);
+
+ static bool Delete(const char* path);
+
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Directory);
};
« no previous file with comments | « runtime/bin/builtin_in.cc ('k') | runtime/bin/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698