diff options
Diffstat (limited to 'src/FbTk/FileUtil.hh')
-rw-r--r-- | src/FbTk/FileUtil.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/FileUtil.hh b/src/FbTk/FileUtil.hh index 664c26d..4721c2f 100644 --- a/src/FbTk/FileUtil.hh +++ b/src/FbTk/FileUtil.hh | |||
@@ -61,7 +61,7 @@ namespace FileUtil { | |||
61 | bool copyFile(const char* from, const char* to); | 61 | bool copyFile(const char* from, const char* to); |
62 | 62 | ||
63 | }; // end of File namespace | 63 | }; // end of File namespace |
64 | 64 | ||
65 | /// Wrapper class for DIR * routines | 65 | /// Wrapper class for DIR * routines |
66 | class Directory : private FbTk::NotCopyable { | 66 | class Directory : private FbTk::NotCopyable { |
67 | public: | 67 | public: |
@@ -70,19 +70,19 @@ public: | |||
70 | const std::string &name() const { return m_name; } | 70 | const std::string &name() const { return m_name; } |
71 | /// go to start of filelist | 71 | /// go to start of filelist |
72 | void rewind(); | 72 | void rewind(); |
73 | /// gets next dirent info struct in directory and | 73 | /// gets next dirent info struct in directory and |
74 | /// jumps to next directory entry | 74 | /// jumps to next directory entry |
75 | struct dirent * read(); | 75 | struct dirent * read(); |
76 | /// reads next filename in directory | 76 | /// reads next filename in directory |
77 | std::string readFilename(); | 77 | std::string readFilename(); |
78 | /// close directory | 78 | /// close directory |
79 | void close(); | 79 | void close(); |
80 | /// open directory | 80 | /// open directory |
81 | /// @param dir the directory name | 81 | /// @param dir the directory name |
82 | bool open(const char *dir); | 82 | bool open(const char *dir); |
83 | /// @return number of entries in the directory | 83 | /// @return number of entries in the directory |
84 | size_t entries() const { return m_num_entries; } | 84 | size_t entries() const { return m_num_entries; } |
85 | 85 | ||
86 | private: | 86 | private: |
87 | std::string m_name; | 87 | std::string m_name; |
88 | DIR *m_dir; | 88 | DIR *m_dir; |