diff options
author | Mike Dirolf <mike@10gen.com> | 2009-09-21 12:02:45 -0400 |
---|---|---|
committer | Mike Dirolf <mike@10gen.com> | 2009-09-21 12:02:45 -0400 |
commit | f20838c3f3c46a12a328f9656fce5090e7389144 (patch) | |
tree | 625d9efcf8c57f925e3cbbe959853d89c58203e9 /dbtests/framework.cpp | |
parent | 42081471dba6e3cd5486944dcacd7eb07d8a894f (diff) | |
download | mongo-f20838c3f3c46a12a328f9656fce5090e7389144.tar.gz |
minor: use is_directory for old versions of boost
Diffstat (limited to 'dbtests/framework.cpp')
-rw-r--r-- | dbtests/framework.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbtests/framework.cpp b/dbtests/framework.cpp index 05f3719d978..e43c299cff8 100644 --- a/dbtests/framework.cpp +++ b/dbtests/framework.cpp @@ -164,8 +164,7 @@ namespace mongo { /* remove the contents of the test directory if it exists. */ if (boost::filesystem::exists(p)) { - /* TODO maybe should check for symlinks to regular files too */ - if (boost::filesystem::is_regular_file(p)) { + if (!boost::filesystem::is_directory(p)) { cout << "ERROR: path \"" << p << "\" is not a directory" << endl << endl; show_help_text(argv[0], shell_options); return EXIT_BADOPTIONS; |