3#include "../core/generator.hpp"
4#include "../core/string.hpp"
11#error file::list is incompatible with this OS! Please create a pull request or open an issue on GitHub.
A wrapper for std::vector.
Definition array.hpp:72
zpath dir() noexcept
Get the current working directory.
core::generator< zpath, dirscan > listDirs(const zpath &dir, bool showAll=false) noexcept
List all sub-directories in the given directory.
core::generator< zpath, dirscan > listFiles(const zpath &dir, const zpath &fileType="*", bool showAll=true) noexcept
List all files of a given type in the given directory.
State management struct for directory scanning generators.
Definition list.hpp:20
WIN32_FIND_DATA fd
Directory handle.
Definition list.hpp:30
DIR * dpdf
Directory handle.
Definition list.hpp:23
dirent * epdf
File handle.
Definition list.hpp:25
zpath fileType
The file type to filter by.
Definition list.hpp:27
HANDLE hFind
File handle.
Definition list.hpp:32
bool used
Whether the directory has been opened yet.
Definition list.hpp:37
bool showAll
Whether to include hidden files in the output.
Definition list.hpp:35