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

Side by Side Diff: runtime/bin/directory.h

Issue 9316066: Implement recursive directory deletion. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 10 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) 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 "platform/globals.h" 9 #include "platform/globals.h"
10 10
(...skipping 14 matching lines...) Expand all
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 int CreateTemp(const char* const_template, 30 static int CreateTemp(const char* const_template,
31 char** path, 31 char** path,
32 char* os_error_message, 32 char* os_error_message,
33 int os_error_message_len); 33 int os_error_message_len);
34 34
35 static bool Delete(const char* path); 35 static bool Delete(const char* path, bool recursive);
36 36
37 DISALLOW_ALLOCATION(); 37 DISALLOW_ALLOCATION();
38 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); 38 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory);
39 }; 39 };
40 40
41 #endif // BIN_DIRECTORY_H_ 41 #endif // BIN_DIRECTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698