8 #include <boost/version.hpp> 9 #if BOOST_VERSION >= 103500 10 #include <boost/filesystem.hpp> 11 #else // BOOST_VERSION >= 103500 12 #include <boost/filesystem/path.hpp> 13 #include <boost/filesystem/operations.hpp> 14 #endif // BOOST_VERSION >= 103500 18 namespace boostfs = boost::filesystem;
26 boostfs::path lPath (iFilepath);
28 if (boostfs::exists (lPath) ==
false) {
32 #if BOOST_VERSION >= 103500 33 if (boostfs::is_regular (lPath) ==
true) {
36 #endif // BOOST_VERSION >= 103500 Handle on the StdAir library context.
static bool doesExistAndIsReadable(const std::string &iFilepath)