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

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

Issue 13896034: Add the ability to change the working directory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 "bin/dartutils.h" 9 #include "bin/dartutils.h"
10 #include "bin/native_service.h" 10 #include "bin/native_service.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 kListRequest = 4, 98 kListRequest = 4,
99 kRenameRequest = 5 99 kRenameRequest = 5
100 }; 100 };
101 101
102 static bool List(const char* path, 102 static bool List(const char* path,
103 bool recursive, 103 bool recursive,
104 bool follow_links, 104 bool follow_links,
105 DirectoryListing* listing); 105 DirectoryListing* listing);
106 static ExistsResult Exists(const char* path); 106 static ExistsResult Exists(const char* path);
107 static char* Current(); 107 static char* Current();
108 static bool SetCurrent(const char* path);
108 static bool Create(const char* path); 109 static bool Create(const char* path);
109 static char* CreateTemp(const char* const_template); 110 static char* CreateTemp(const char* const_template);
110 static bool Delete(const char* path, bool recursive); 111 static bool Delete(const char* path, bool recursive);
111 static bool Rename(const char* path, const char* new_path); 112 static bool Rename(const char* path, const char* new_path);
112 static Dart_Port GetServicePort(); 113 static Dart_Port GetServicePort();
113 114
114 private: 115 private:
115 static NativeService directory_service_; 116 static NativeService directory_service_;
116 117
117 DISALLOW_ALLOCATION(); 118 DISALLOW_ALLOCATION();
118 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); 119 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory);
119 }; 120 };
120 121
121 } // namespace bin 122 } // namespace bin
122 } // namespace dart 123 } // namespace dart
123 124
124 #endif // BIN_DIRECTORY_H_ 125 #endif // BIN_DIRECTORY_H_
OLDNEW
« no previous file with comments | « runtime/bin/dartutils.cc ('k') | runtime/bin/directory.cc » ('j') | runtime/bin/directory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698