Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Globally available directories related functions
Used to perform typical operations with it.
More...
Functions | |
bool ATTR_DLL_LOCAL | kodi::vfs::CreateDirectory (const std::string &path) |
Make a directory. | |
bool ATTR_DLL_LOCAL | kodi::vfs::DirectoryExists (const std::string &path) |
Verifying the Existence of a Directory. | |
bool ATTR_DLL_LOCAL | kodi::vfs::RemoveDirectory (const std::string &path, bool recursive=false) |
Removes a directory. | |
bool ATTR_DLL_LOCAL | kodi::vfs::GetDirectory (const std::string &path, const std::string &mask, std::vector< kodi::vfs::CDirEntry > &items) |
Lists a directory. | |
Globally available directories related functions
Used to perform typical operations with it.
|
inline |
Make a directory.
The kodi::vfs::CreateDirectory() function shall create a new directory with name path.
The newly created directory shall be an empty directory.
[in] | path | Path to the directory. |
Example:
|
inline |
Verifying the Existence of a Directory.
The kodi::vfs::DirectoryExists() method determines whether a specified folder exists.
[in] | path | Path to the directory. |
Example:
|
inline |
Lists a directory.
Return the list of files and directories which have been found in the specified directory and which respect the given constraint.
It can handle the normal OS dependent paths and also the special virtual filesystem from Kodi what starts with special://.
[in] | path | The path in which the files and directories are located. |
[in] | mask | Mask to filter out requested files, e.g. "*.avi|*.mpg" to files with this ending. |
[out] | items | The returned list directory entries. |
Example:
|
inline |
Removes a directory.
The kodi::vfs::RemoveDirectory() function shall remove a directory whose name is given by path.
[in] | path | Path to the directory. |
[in] | recursive | [opt] Remove directory recursive (default is false) |
Example: