X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fsg_dir.hxx;h=0ebc2bf7a3cb005b68902f1fe97576d376dde251;hb=e4e31be7d43569a92a5d9fa7e784381b66cbd95a;hp=5ff51c9cb85fdd6272938412da95b8b4d689d2d1;hpb=a62a8518b98830f4ca1c3622aa17163ec95f6228;p=simgear.git diff --git a/simgear/misc/sg_dir.hxx b/simgear/misc/sg_dir.hxx index 5ff51c9c..0ebc2bf7 100644 --- a/simgear/misc/sg_dir.hxx +++ b/simgear/misc/sg_dir.hxx @@ -52,6 +52,11 @@ namespace simgear PathList children(int types = 0, const std::string& nameGlob = "") const; SGPath file(const std::string& name) const; + + /** + * Check that the directory at the path exists (and is a directory!) + */ + bool exists() const; private: mutable SGPath _path; };