33 #include <boost/filesystem/path.hpp> 36 #include <sys/types.h> 38 #include "mongo/util/mongoutils/str.h" 65 static RelativePath fromFullPath(boost::filesystem::path dbpath, boost::filesystem::path f);
static RelativePath fromRelativePath(const std::string &f)
Definition: paths.h:56
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
std::string _p
Definition: paths.h:50
boost::filesystem::path ensureParentDirCreated(const boost::filesystem::path &p)
Aliases for Win32 CRT functions.
Definition: file_allocator.cpp:115
bool operator<(const RelativePath &r) const
Definition: paths.h:77
bool onSamePartition(const std::string &path1, const std::string &path2)
Definition: paths.h:90
void flushMyDirectory(const boost::filesystem::path &file)
Definition: paths.cpp:69
std::string dbpath
Definition: storage_options.h:62
bool operator==(const RelativePath &r) const
Definition: paths.h:74
bool empty() const
Definition: paths.h:52
std::string toString() const
Definition: paths.h:67
dev_t getPartition(const std::string &path)
Definition: paths.cpp:57
bool operator!=(const RelativePath &r) const
Definition: paths.h:71
StorageGlobalParams storageGlobalParams
Definition: storage_options.cpp:39
std::string asFullPath() const
Definition: paths.h:81
this is very much like a boost::path.
Definition: paths.h:49