#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 () |
String | expand_fsdir (const String &fsdir) |
ResourceS | list_entries () |
![]() | |
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) |
ResourceS | get_entries () const override |
Resource | get_folder () const override |
void | set_entries (const ResourceS &newentries) override |
void | set_folder (const Resource &newfolder) 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::get_entries,&ResourceCrawler::set_entries > | entries |
Member<&ResourceCrawler::get_folder,&ResourceCrawler::set_folder > | folder |
Class implementing a file system crawler.
|
protected |
Open a new folder and make it the current folder.
|
overrideprotectedvirtual |
Describe current folder.
Implements ResourceCrawler.
|
overrideprotectedvirtual |
Implements ResourceCrawler.
|
overrideprotectedvirtual |
List entries of a folder.
Implements ResourceCrawler.
|
overrideprotectedvirtual |
Implements ResourceCrawler.
ASE_DEFINE_MAKE_SHARED | ( | FileCrawler | ) |
ResourceS list_entries | ( | ) |
List all entries in the current folder.
Resource current_folder | ( | ) |
Return the current folder.
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.