Virtual file server directory entry
This class is used as an entry for files and folders in kodi::vfs::GetDirectory().
Example:
It has the header #include <kodi/Filesystem.h> be included to enjoy it.
The following table contains values that can be set with class CDirEntry :
Name | Type | Set call | Get call | Clear call |
---|---|---|---|---|
Directory entry name | std::string | SetLabel | Label | |
Title of entry | std::string | SetTitle | Title | |
Path of the entry | std::string | SetPath | Path | |
Entry is folder | bool | SetFolder | IsFolder | |
The size of the file | int64_t | SetSize | Size | |
File time and date | time_t | SetDateTime | DateTime | |
Property entries | std::string, std::string | AddProperty | GetProperties | ClearProperties |
Modules | |
<em>Value Help</em> | |
|
inline |
Constructor for VFS directory entry.
[in] | label | [opt] Name to use for entry |
[in] | path | [opt] Used path of the entry |
[in] | folder | [opt] If set entry used as folder |
[in] | size | [opt] If used as file, his size defined there |
[in] | dateTime | [opt] Date time of the entry |