summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils_extended.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2013-10-30 17:17:16 -0400
committerBenety Goh <benety@mongodb.com>2013-11-01 14:24:04 -0400
commit6b7d6962a9c8836c54e678d3dddb297c3c76089c (patch)
treed0b17dbacfcaa8b6e69e85832745a1f45a4e60b9 /src/mongo/shell/shell_utils_extended.cpp
parentb9b626c584b02ae607beaf16a2c0d748ceec98e4 (diff)
downloadmongo-6b7d6962a9c8836c54e678d3dddb297c3c76089c.tar.gz
SERVER-11462 use base name in tests where verifying filenames. also added base name to listFiles() result
Diffstat (limited to 'src/mongo/shell/shell_utils_extended.cpp')
-rw-r--r--src/mongo/shell/shell_utils_extended.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/shell/shell_utils_extended.cpp b/src/mongo/shell/shell_utils_extended.cpp
index e262d380133..c5512d7904a 100644
--- a/src/mongo/shell/shell_utils_extended.cpp
+++ b/src/mongo/shell/shell_utils_extended.cpp
@@ -60,6 +60,7 @@ namespace mongo {
boost::filesystem::path p = *i;
BSONObjBuilder b;
b << "name" << p.generic_string();
+ b << "baseName" << p.filename().generic_string();
b.appendBool( "isDirectory", is_directory( p ) );
if ( ! boost::filesystem::is_directory( p ) ) {
try {