Практика std::filesystem в C++
Создайте std::filesystem::path log
со значением "run.log". Выведите
log.filename.string.
Запишите std::filesystem::path where
из std::filesystem::current_path и
выведите where.parent_path.string.
Пусть std::filesystem::path from
равен std::filesystem::path{"docs"}, а
std::filesystem::path to -
std::filesystem::path{"docs/manual"}.
Выведите std::filesystem::relative(to, from).string.
Возьмите std::filesystem::space для
std::filesystem::temp_directory_path
и выведите capacity из результата.
Соберите std::filesystem::path buf
как std::filesystem::temp_directory_path / "slot.tmp".
Выведите buf.string без создания файла.