suwako / UnixWallpaper アーカイブ

このリポジトリはアーカイブされています。読むだけで、プッシュやイシューの変更は出来ません。

master
ブランチ master
UnixWallpaper / src / fe / misc.cc
255 B、11行 生 Blame 履歴
1#include "misc.hh"
2
3#include <filesystem>
4#include <string>
5
6namespace fe {
7 bool Misc::isExist(const std::string &path) {
8 std::filesystem::path fsPath(path);
9 return std::filesystem::exists(fsPath) && std::filesystem::is_directory(fsPath);
10 }
11}