]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/sg_dir.hxx
Fix VS2010 lack of fminf
[simgear.git] / simgear / misc / sg_dir.hxx
index 109a0d4b0d846b1a51732683d2aec1f6882cfbf5..336c2ee13bc0e6382e3d6b6894737687911e1ac1 100644 (file)
@@ -72,6 +72,11 @@ namespace simgear
     
     PathList children(int types = 0, const std::string& nameGlob = "") const;
     
+    /**
+     * test if the directory contains no children (except '.' and '..')
+     */
+    bool isEmpty() const;
+    
     SGPath file(const std::string& name) const;
     
     SGPath path() const
@@ -90,6 +95,12 @@ namespace simgear
      */
     bool remove(bool recursive = false);
     
+    /**
+     * remove our children but not us
+     */
+    bool removeChildren() const;
+    
+    
     /**
      * Check that the directory at the path exists (and is a directory!)
      */