static std::wstring get_filename(boost::filesystem::wpath path) { return path.filename(); }
static pattern_type split_pattern(boost::filesystem::wpath path) { if (boost::filesystem::is_directory(path)) return pattern_type(path, _T("")); return pattern_type(path.branch_path(), path.filename()); }
bool Platform::pathIsHidden(const boost::filesystem::wpath& path_to_investigate) { // Same in Linux and Mac FYI std::wstring fn = path_to_investigate.filename(); return (fn.empty() || fn[0] == L'.'); }