| OLD | NEW |
| 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 enum ExistsResult { | 13 enum ExistsResult { |
| 14 UNKNOWN, | 14 UNKNOWN, |
| 15 EXISTS, | 15 EXISTS, |
| 16 DOES_NOT_EXIST | 16 DOES_NOT_EXIST |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 static void List(const char* path, | 19 static void List(const char* path, |
| 20 bool recursive, | 20 bool recursive, |
| 21 Dart_Port dir_port, | 21 Dart_Port dir_port, |
| 22 Dart_Port file_port, | 22 Dart_Port file_port, |
| 23 Dart_Port done_port, | 23 Dart_Port done_port, |
| 24 Dart_Port error_port); | 24 Dart_Port error_port); |
| 25 | 25 |
| 26 static ExistsResult Exists(const char* path); | 26 static ExistsResult Exists(const char* path); |
| 27 | 27 |
| 28 static bool Create(const char* path); | 28 static bool Create(const char* path); |
| 29 | 29 |
| 30 static char* CreateTemp(const char* const_template); |
| 31 |
| 30 static bool Delete(const char* path); | 32 static bool Delete(const char* path); |
| 31 | 33 |
| 32 DISALLOW_ALLOCATION(); | 34 DISALLOW_ALLOCATION(); |
| 33 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); | 35 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); |
| 34 }; | 36 }; |
| 35 | 37 |
| 36 #endif // BIN_DIRECTORY_H_ | 38 #endif // BIN_DIRECTORY_H_ |
| OLD | NEW |