*/
String Utility::DirName(const String& path)
{
- return boost::filesystem::path(path).parent_path().string();
+ return boost::filesystem::path(path.Begin(), path.End()).parent_path().string();
}
/**
*/
String Utility::BaseName(const String& path)
{
- return boost::filesystem::path(path).filename().string();
+ return boost::filesystem::path(path.Begin(), path.End()).filename().string();
}
/**
{
namespace fs = boost::filesystem;
- (void)fs::remove_all(fs::path(path));
+ (void)fs::remove_all(fs::path(path.Begin(), path.End()));
}
/*
{
namespace fs = boost::filesystem;
- fs::copy_file(fs::path(source), fs::path(target), fs::copy_option::overwrite_if_exists);
+ fs::copy_file(fs::path(source.Begin(), source.End()), fs::path(target.Begin(), target.End()), fs::copy_option::overwrite_if_exists);
}
/*
boost::system::error_code ec;
- return fs::exists(fs::path(path), ec) && !ec;
+ return fs::exists(fs::path(path.Begin(), path.End()), ec) && !ec;
}
Value Utility::LoadJsonFile(const String& path)
_unlink(path.CStr());
#endif /* _WIN32 */
- fs::rename(fs::path(tempFilename), fs::path(path));
+ fs::rename(fs::path(tempFilename.Begin(), tempFilename.End()), fs::path(path.Begin(), path.End()));
}
static void HexEncode(char ch, std::ostream& os)