HDK
|
Class to stat a file. The class tests for a "home:" prefix and replaces it with $HOME. More...
#include <FS_HomeHelper.h>
Public Member Functions | |
FS_HomeInfoHelper () | |
~FS_HomeInfoHelper () override | |
bool | canHandle (const char *source) override |
Determine whether this helper can process the filename. More... | |
bool | hasAccess (const char *source, int mode) override |
bool | getIsDirectory (const char *source) override |
Return whether the filename is a directory. More... | |
int | getModTime (const char *source) override |
Get the modification timestamp (returns time_t) More... | |
int64 | getSize (const char *source) override |
Get the file size in bytes. More... | |
UT_String | getExtension (const char *source) override |
bool | getContents (const char *source, UT_StringArray &contents, UT_StringArray *dirs) override |
![]() | |
FS_InfoHelper () | |
virtual | ~FS_InfoHelper () |
virtual char | getNextSepChar (const char *) |
Next separator character. More... | |
virtual char | getPrevSepChar (const char *) |
Previous separator character. More... | |
virtual bool | customNavigatePath (UT_String &path, const char *file) |
virtual bool | getPathOnDisk (UT_String &path, const char *file) |
Class to stat a file. The class tests for a "home:" prefix and replaces it with $HOME.
Definition at line 93 of file FS_HomeHelper.h.
FS_HomeInfoHelper::FS_HomeInfoHelper | ( | ) |
Definition at line 465 of file FS_HomeHelper.C.
|
override |
Definition at line 470 of file FS_HomeHelper.C.
|
overridevirtual |
Determine whether this helper can process the filename.
Implements FS_InfoHelper.
Definition at line 475 of file FS_HomeHelper.C.
|
overridevirtual |
Read the contents of a directory
source | - The directory to read |
contents | - The list of files in the directory |
dirs | - The list of directories in the directory If dirs is NULL, then all directories should be included in the contents . |
Implements FS_InfoHelper.
Definition at line 569 of file FS_HomeHelper.C.
Reimplemented from FS_InfoHelper.
Definition at line 541 of file FS_HomeHelper.C.
|
overridevirtual |
Return whether the filename is a directory.
Implements FS_InfoHelper.
Definition at line 496 of file FS_HomeHelper.C.
Get the modification timestamp (returns time_t)
Implements FS_InfoHelper.
Definition at line 511 of file FS_HomeHelper.C.
Get the file size in bytes.
Implements FS_InfoHelper.
Definition at line 526 of file FS_HomeHelper.C.
source | Filename for access check |
mode | The read/write/execute status |
Implements FS_InfoHelper.
Definition at line 481 of file FS_HomeHelper.C.