File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ namespace sys {
89
89
// / Construct a path to the root directory of the file system. The root
90
90
// / directory is a top level directory above which there are no more
91
91
// / directories. For example, on UNIX, the root directory is /. On Windows
92
- // / it is C:\ . Other operating systems may have different notions of
92
+ // / it is file:/// . Other operating systems may have different notions of
93
93
// / what the root directory is or none at all. In that case, a consistent
94
94
// / default root directory will be used.
95
95
static Path GetRootDirectory ();
Original file line number Diff line number Diff line change @@ -233,9 +233,9 @@ Path::GetTemporaryDirectory(std::string* ErrMsg) {
233
233
// FIXME: the following set of functions don't map to Windows very well.
234
234
Path
235
235
Path::GetRootDirectory () {
236
- Path result;
237
- result. set ( " C:/ " );
238
- return result ;
236
+ // This is the only notion that that Windows has of a root directory. Nothing
237
+ // is here except for drives.
238
+ return Path ( " file:/// " ) ;
239
239
}
240
240
241
241
void
You can’t perform that action at this time.
0 commit comments