summaryrefslogtreecommitdiff
path: root/src/tangara/lua/file_iterator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tangara/lua/file_iterator.hpp')
-rw-r--r--src/tangara/lua/file_iterator.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tangara/lua/file_iterator.hpp b/src/tangara/lua/file_iterator.hpp
index b803062c..2d5c2d7d 100644
--- a/src/tangara/lua/file_iterator.hpp
+++ b/src/tangara/lua/file_iterator.hpp
@@ -19,13 +19,13 @@ struct FileEntry {
int index;
bool isHidden;
bool isDirectory;
- bool isTrack;
std::string filepath;
+ std::string name;
};
class FileIterator {
public:
- FileIterator(std::string filepath);
+ FileIterator(std::string filepath, bool showHidden);
~FileIterator();
auto value() const -> const std::optional<FileEntry>&;
@@ -35,6 +35,7 @@ class FileIterator {
private:
FF_DIR dir_;
std::string original_path_;
+ bool show_hidden_;
std::optional<FileEntry> current_;
int offset_;
@@ -42,4 +43,4 @@ class FileIterator {
auto iterate(bool reverse = false) -> bool;
};
-} // namespace lua \ No newline at end of file
+} // namespace lua