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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_DIRECTORY_H_ 5 #ifndef BIN_DIRECTORY_H_
6 #define BIN_DIRECTORY_H_ 6 #define BIN_DIRECTORY_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/globals.h" 9 #include "bin/globals.h"
10 10
11 class Directory { 11 class Directory {
12 public: 12 public:
13 static void List(const char* path, 13 static void List(const char* path,
14 bool recursive, 14 bool recursive,
15 Dart_Port dir_port, 15 Dart_Port dir_port,
16 Dart_Port file_port, 16 Dart_Port file_port,
17 Dart_Port done_port, 17 Dart_Port done_port,
18 Dart_Port error_port); 18 Dart_Port error_port);
19 19
20 static bool Exists(const char* path, bool* result);
21
22 static bool Create(const char* path);
23
24 static bool Delete(const char* path);
25
20 DISALLOW_ALLOCATION(); 26 DISALLOW_ALLOCATION();
21 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); 27 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory);
22 }; 28 };
23 29
24 #endif // BIN_DIRECTORY_H_ 30 #endif // BIN_DIRECTORY_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin_in.cc ('k') | runtime/bin/directory.cc » ('j') | runtime/bin/directory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698