Ase::ResourceCrawler class

Helper to crawl hierarchical resources.

Base classes

class Object virtual
Base type for classes with Property interfaces.

Derived classes

class FileCrawler final
Class implementing a file system crawler.

Public functions

auto assign(const String& utf8path, bool existingfile = false) →  String2 pure virtual
auto canonify(const String& utf8cwd, const String& utf8fragment, bool constraindir, bool constrainfile) →  Resource pure virtual
Return absolute path, slash-terminated if directory, constrain to existing paths.
auto current_folder() →  Resource pure virtual
Describe current folder.
auto list_entries() →  ResourceS pure virtual
List entries of a folder.

Public variables

Member<&ResourceCrawler::folder_> folder
The folder currently being browsed, UTF-8 encoded.
Member<&ResourceCrawler::entries_> entries
The entries in the current folder, UTF-8 encoded.

Function documentation

String2 Ase::ResourceCrawler::assign(const String& utf8path, bool existingfile = false) pure virtual

Move to a different path.