#include "crawler.hh"
Public Member Functions | |
ASE_DEFINE_MAKE_SHARED (FileCrawler) | |
String2 | assign (const String &utf8path, bool existingfile) override |
Resource | canonify (const String &utf8cwd, const String &utf8fragment, bool constraindir, bool constrainfile) override |
String | canonify_fspath (const String &fspath, const String &fsfragment, bool constraindir, bool constrainfile) |
Resource | current_folder () override |
String | expand_fsdir (const String &fsdir) |
ResourceS | list_entries () override |
![]() | |
void | emit_event (const String &type, const String &detail, const ValueR fields={}) override |
void | emit_notify (const String &detail) override |
ASE_USE_RESULT Connection | on_event (const String &eventselector, const EventHandler &eventhandler) override |
![]() | |
void | js_trigger (const String &eventselector, JsTrigger callback) |
Protected Member Functions | |
String2 | assign_ (const String &utf8path, bool existingfile, bool notify=true) |
bool | entries_ (const ResourceS *n, ResourceS *q) override |
bool | folder_ (const Resource *n, Resource *q) override |
![]() | |
virtual | ~ObjectImpl ()=0 |
![]() | |
virtual | ~EmittableImpl () |
![]() | |
virtual | ~VirtualBase () noexcept=0 |
![]() | |
virtual | ~Object ()=0 |
![]() | |
ResourceCrawler () | |
Additional Inherited Members | |
![]() | |
using | String2 = std::pair< String, String > |
![]() | |
Member<&ResourceCrawler::entries_ > | entries |
Member<&ResourceCrawler::folder_ > | folder |
Class implementing a file system crawler.
|
protected |
Open a new folder and make it the current folder.
Implements ResourceCrawler.
|
overrideprotectedvirtual |
Implements ResourceCrawler.
ASE_DEFINE_MAKE_SHARED | ( | FileCrawler | ) |
|
overridevirtual |
List all entries in the current folder.
Implements ResourceCrawler.
|
overridevirtual |
Return the current folder.
Implements ResourceCrawler.
Move to a different path.
Implements ResourceCrawler.
|
overridevirtual |
Canonify a UTF-8 path name, optionally constraining it to a folder or file.
Implements ResourceCrawler.
String canonify_fspath | ( | const String & | fspath, |
const String & | fsfragment, | ||
bool | constraindir, | ||
bool | constrainfile | ||
) |
Canonify a path (file system encoding), optionally constraining it to a directory or file.