| 
    Kodi Documentation 22.0
    
   Kodi is an open source media player and entertainment hub. 
   | 
 
General access functions More...
Topics | |
| Callbacks GetDirectory() | |
| Callback functions on GetDirectory()  | |
General access functions
This functions which are intended for getting folders, editing storage locations and file system queries.
      
  | 
  inlinevirtual | 
Clear out any idle connections.
      
  | 
  inlinevirtual | 
Check if file should be presented as a directory (multiple streams)
| [in] | url | The URL of the file | 
| [out] | entries | The entries in the directory, see kodi::vfs::CDirEntry about his content | 
| [out] | rootPath | Path to root directory if multiple entries | 
      
  | 
  inlinevirtual | 
Create a directory.
| [in] | url | The URL of the file | 
      
  | 
  inlinevirtual | 
Delete a file.
| [in] | url | The URL of the file | 
      
  | 
  inlinevirtual | 
Check for directory existence.
| [in] | url | The URL of the file | 
      
  | 
  inlinevirtual | 
Disconnect all connections.
      
  | 
  inlinevirtual | 
Check for file existence.
| [in] | url | The URL of the file | 
      
  | 
  inlinevirtual | 
List a directory.
| [in] | url | The URL of the directory | 
| [out] | entries | The entries in the directory, see kodi::vfs::CDirEntry about his content | 
| [in] | callbacks | A callback structure | 
This functions becomes available during call of GetDirectory() from Kodi.
If GetDirectory() returns false becomes the parts from here used on next call of the function.
Example:
Available callback functions
| Function: | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CVFSCallbacks::GetKeyboardInput | Require keyboard input. Becomes called if GetDirectory() returns false and GetDirectory() becomes after entry called again. 
 
  | ||||||||||||
| CVFSCallbacks::SetErrorDialog | Display an error dialog.      
  | ||||||||||||
| CVFSCallbacks::RequireAuthentication | Prompt the user for authentication of a URL.      
  | 
      
  | 
  inlinevirtual | 
Remove a directory.
| [in] | url | The URL of the directory | 
      
  | 
  inlinevirtual | 
Rename a file.
| [in] | url | The URL of the source file | 
| [in] | url2 | The URL of the destination file | 
      
  | 
  inlinevirtual | 
Stat a file.
| [in] | url | The URL of the file | 
| [in] | buffer | The buffer to store results in | 
The following table contains values that can be set with class VFSUrl :
| Name | Type | Get call | 
|---|---|---|
| URL | std::string    | GetURL | 
| Domain name | std::string    | GetDomain | 
| Hostname | std::string    | GetHostname | 
| Filename | std::string    | GetFilename | 
| Network port | unsigned int    | GetPort | 
| Special options | std::string    | GetOptions | 
| Username | std::string    | GetUsername | 
| Password | std::string    | GetPassword | 
| Get URL with user and password hidden | std::string    | GetRedacted | 
| Sharename | std::string    | GetSharename | 
| Network protocol | std::string    | GetProtocol |