20 #ifndef MPD_FS_DIRECTORY_READER_HXX 21 #define MPD_FS_DIRECTORY_READER_HXX 39 class MakeWildcardPath {
44 auto l = _tcslen(_path);
48 path[l + 1] = _T(
'*');
88 return FindNextFile(handle, &data) != 0;
108 dirent *ent =
nullptr;
132 return ent !=
nullptr;
Path GetEntry() const
Extracts directory entry that was previously read by ReadEntry.
bool HasEntry() const
Checks if directory entry is available.
bool ReadEntry()
Reads next directory entry.
Pointer::pointer_type pointer_type
static constexpr Path FromFS(const_pointer_type fs)
Create a new instance pointing to the specified path string.
DirectoryReader & operator=(const DirectoryReader &other)=delete
Pointer::const_pointer_type const_pointer_type
A path name in the native file system character set.
Reader for directory entries.
~DirectoryReader()
Destroys this instance.
DirectoryReader(Path dir)
Creates new directory reader for the specified #dir.
char_traits::char_type value_type