// file : CCF/CompilerElements/FileSystem.hpp // author : Boris Kolpackov // cvs-id : $Id$ #ifndef CCF_RUNTIME_FILE_SYSTEM_HPP #define CCF_RUNTIME_FILE_SYSTEM_HPP #include #include #include #include #include namespace fs { using namespace boost::filesystem; inline path normalize (path const& p) { path result; for (path::iterator i (p.begin ()), e (p.end ()); i != e; ++i) { if (*i != ".") result /= path (*i, native); } return result; } } #endif // CCF_RUNTIME_FILE_SYSTEM_HPP