add io::directory_iterator

This commit is contained in:
MihailRis
2025-01-31 10:07:05 +03:00
parent c3066eebd3
commit 347d76870a
13 changed files with 182 additions and 64 deletions
+10
View File
@@ -127,6 +127,10 @@ namespace io {
bool empty() const {
return str.empty();
}
bool emptyOrInvalid() const {
return str.empty() || colonPos == std::string::npos;
}
private:
/// @brief UTF-8 string contains entry_point:path or empty string
std::string str;
@@ -135,4 +139,10 @@ namespace io {
void checkValid() const;
};
class PathsGenerator {
public:
virtual ~PathsGenerator() = default;
virtual bool next(path& dst) = 0;
};
}