Ase::FileCrawler class final

Class implementing a file system crawler.

Base classes

class ObjectImpl
Implementation type for classes with Property interfaces.
class ResourceCrawler virtual
Helper to crawl hierarchical resources.

Public functions

auto assign(const String& utf8path, bool existingfile) →  String2 override
auto canonify(const String& utf8cwd, const String& utf8fragment, bool constraindir, bool constrainfile) →  Resource override
Canonify a UTF-8 path name, optionally constraining it to a folder or file.
auto canonify_fspath(const String& fspath, const String& fsfragment, bool constraindir, bool constrainfile) →  String
Canonify a path (file system encoding), optionally constraining it to a directory or file.
auto current_folder() →  Resource override
Return the current folder.
void emit_notify(const String& detail) override
Emit notify:detail, multiple notifications maybe coalesced if a CoalesceNotifies instance exists.
auto expand_fsdir(const String& fsdir) →  String
Expand directory name (file system encoding) to absolute folder path.
auto list_entries() →  ResourceS override
List all entries in the current 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.

Protected functions

auto assign_(const String& utf8path, bool existingfile, bool notify = true) →  String2
Open a new folder and make it the current folder.

Function documentation

String2 Ase::FileCrawler::assign(const String& utf8path, bool existingfile) override

Move to a different path.