aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Directory.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-17 13:19:54 (GMT)
committerfluxgen <fluxgen>2003-08-17 13:19:54 (GMT)
commit2211428f2d3de7da6e057624e43dc8d13a106a54 (patch)
tree5b26874c761fcab31d0b192c3c7b9f93080e24fc /src/FbTk/Directory.hh
parent856ca4330f8afcf866a642999a74892afdf9467e (diff)
downloadfluxbox-2211428f2d3de7da6e057624e43dc8d13a106a54.zip
fluxbox-2211428f2d3de7da6e057624e43dc8d13a106a54.tar.bz2
added isDirectory and isRegularFile
Diffstat (limited to 'src/FbTk/Directory.hh')
-rw-r--r--src/FbTk/Directory.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/FbTk/Directory.hh b/src/FbTk/Directory.hh
index 0786214..7862a51 100644
--- a/src/FbTk/Directory.hh
+++ b/src/FbTk/Directory.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Directory.hh,v 1.1 2003/05/18 22:06:59 fluxgen Exp $ 22// $Id: Directory.hh,v 1.2 2003/08/17 13:19:54 fluxgen Exp $
23 23
24#ifndef FBTK_DIRECTORY_HH 24#ifndef FBTK_DIRECTORY_HH
25#define FBTK_DIRECTORY_HH 25#define FBTK_DIRECTORY_HH
@@ -51,7 +51,10 @@ public:
51 bool open(const char *dir); 51 bool open(const char *dir);
52 /// @return number of entries in the directory 52 /// @return number of entries in the directory
53 size_t entries() const { return m_num_entries; } 53 size_t entries() const { return m_num_entries; }
54 54 /// @return true if file is a directory
55 static bool isDirectory(const std::string &filename);
56 /// @return true if a file is a regular file
57 static bool isRegularFile(const std::string &filename);
55private: 58private:
56 DIR *m_dir; 59 DIR *m_dir;
57 size_t m_num_entries; ///< number of file entries in directory 60 size_t m_num_entries; ///< number of file entries in directory