Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Get access to a directory of a file system. More...
#include <DirectoryFactory.h>
Static Public Member Functions | |
static IDirectory * | Create (const CURL &url) |
Create a IDirectory object of the share type specified in strPath . | |
static IDirectory * | Create (const CFileItem &item) |
Create a IDirectory object of the share type specified in a given item path. | |
Get access to a directory of a file system.
The Factory can be used to create a directory object for every file system accessable.
Example:
std::string strShare="iso9660://"; IDirectory* pDir=CDirectoryFactory::Create(strShare);
The pDir pointer can be used to access a directory and retrieve it's content.
When different types of shares have to be accessed use CVirtualDirectory.
|
static |
Create a IDirectory object of the share type specified in a given item path.
item | Specifies the item to which the factory will create the directory instance |
|
static |
Create a IDirectory object of the share type specified in strPath .
strPath | Specifies the share type to access, can be a share or share with path. |