Go to the documentation of this file.00001 #ifndef BWI_TOOLS_FILESYSTEM_H
00002 #define BWI_TOOLS_FILESYSTEM_H
00003
00004 #include <boost/filesystem.hpp>
00005
00006 namespace bwi {
00007
00008 namespace fs {
00009
00010 inline std::string canonicalize(const std::string& path) {
00011 boost::filesystem::path canonicalized_path =
00012 boost::filesystem::absolute(
00013 boost::filesystem::path(path),
00014 boost::filesystem::current_path());
00015 return canonicalized_path.normalize().string();
00016 }
00017
00018 }
00019
00020 }
00021
00022 #endif