OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/dartutils.h" | 9 #include "bin/dartutils.h" |
10 #include "platform/globals.h" | 10 #include "platform/globals.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 UNKNOWN, | 250 UNKNOWN, |
251 EXISTS, | 251 EXISTS, |
252 DOES_NOT_EXIST | 252 DOES_NOT_EXIST |
253 }; | 253 }; |
254 | 254 |
255 static void List(DirectoryListing* listing); | 255 static void List(DirectoryListing* listing); |
256 static ExistsResult Exists(const char* path); | 256 static ExistsResult Exists(const char* path); |
257 static char* Current(); | 257 static char* Current(); |
258 static bool SetCurrent(const char* path); | 258 static bool SetCurrent(const char* path); |
259 static bool Create(const char* path); | 259 static bool Create(const char* path); |
260 static char* CreateTemp(const char* const_template, bool system); | 260 static char* SystemTemp(); |
| 261 static char* CreateTemp(const char* path); |
261 static bool Delete(const char* path, bool recursive); | 262 static bool Delete(const char* path, bool recursive); |
262 static bool Rename(const char* path, const char* new_path); | 263 static bool Rename(const char* path, const char* new_path); |
263 | 264 |
264 static CObject* CreateRequest(const CObjectArray& request); | 265 static CObject* CreateRequest(const CObjectArray& request); |
265 static CObject* DeleteRequest(const CObjectArray& request); | 266 static CObject* DeleteRequest(const CObjectArray& request); |
266 static CObject* ExistsRequest(const CObjectArray& request); | 267 static CObject* ExistsRequest(const CObjectArray& request); |
267 static CObject* CreateTempRequest(const CObjectArray& request); | 268 static CObject* CreateTempRequest(const CObjectArray& request); |
268 static CObject* CreateSystemTempRequest(const CObjectArray& request); | 269 static CObject* CreateSystemTempRequest(const CObjectArray& request); |
269 static CObject* ListStartRequest(const CObjectArray& request); | 270 static CObject* ListStartRequest(const CObjectArray& request); |
270 static CObject* ListNextRequest(const CObjectArray& request); | 271 static CObject* ListNextRequest(const CObjectArray& request); |
271 static CObject* ListStopRequest(const CObjectArray& request); | 272 static CObject* ListStopRequest(const CObjectArray& request); |
272 static CObject* RenameRequest(const CObjectArray& request); | 273 static CObject* RenameRequest(const CObjectArray& request); |
273 | 274 |
274 private: | 275 private: |
275 DISALLOW_ALLOCATION(); | 276 DISALLOW_ALLOCATION(); |
276 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); | 277 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); |
277 }; | 278 }; |
278 | 279 |
279 } // namespace bin | 280 } // namespace bin |
280 } // namespace dart | 281 } // namespace dart |
281 | 282 |
282 #endif // BIN_DIRECTORY_H_ | 283 #endif // BIN_DIRECTORY_H_ |
OLD | NEW |