summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-10-15 11:23:18 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-10-15 11:42:40 -0400
commit3db903709a0ddb23072cd43d1e3e440be4aa75cc (patch)
tree38f6c3afbfc6e95d3f4c95fd439497093b417d83 /src
parent498c99b00cc2f087fdd3f7321044a96af30bfb8c (diff)
downloadmongo-3db903709a0ddb23072cd43d1e3e440be4aa75cc.tar.gz
SERVER-7342 Have the listFiles() shell command always use foreward slash as the path separator.
Diffstat (limited to 'src')
-rw-r--r--src/mongo/shell/shell_utils_extended.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_utils_extended.cpp b/src/mongo/shell/shell_utils_extended.cpp
index 7e147b4eeeb..59579a8fb59 100644
--- a/src/mongo/shell/shell_utils_extended.cpp
+++ b/src/mongo/shell/shell_utils_extended.cpp
@@ -59,7 +59,7 @@ namespace mongo {
while ( i != end ) {
boost::filesystem::path p = *i;
BSONObjBuilder b;
- b << "name" << p.string();
+ b << "name" << p.generic_string();
b.appendBool( "isDirectory", is_directory( p ) );
if ( ! boost::filesystem::is_directory( p ) ) {
try {