|
Kodi Documentation
18.0
Kodi is an open source media player and entertainment hub.
|
Virtual file system functions on Kodi. More...
Modules | |
| File | |
| Kodi's file class. | |
| Stat | |
| Get file or file system status. | |
Functions | |
| copy (...) | |
| |
| deleteFile (...) | |
| |
| rename (...) | |
| |
| exists (...) | |
| |
| mkdir (...) | |
| |
| mkdirs (...) | |
| |
| rmdir (...) | |
| |
| listdir (...) | |
| |
Virtual file system functions on Kodi.
Offers classes and functions offers access to the Virtual File Server (VFS) which you can use to manipulate files and folders.
| copy | ( | ... | ) |
Function: xbmcvfs.copy(source, destination) Copy file to destination, returns true/false.
| source | file to copy. |
| destination | destination file |
Example:
| deleteFile | ( | ... | ) |
Function: xbmcvfs.delete(file) Delete a file
| file | File to delete |
Example:
| exists | ( | ... | ) |
Function: xbmcvfs.exists(path) Check for a file or folder existence
| path | File or folder (folder must end with slash or backslash) |
Example:
| listdir | ( | ... | ) |
Function: xbmcvfs.listdir(path) Lists content of a folder.
| path | Folder to get list from |
Example:
| mkdir | ( | ... | ) |
Function: xbmcvfs.mkdir(path) Create a folder.
| path | Folder to create |
Example:
| mkdirs | ( | ... | ) |
Function: xbmcvfs.mkdirs(path) Make all directories along the path
Create folder(s) - it will create all folders in the path.
| path | Folders to create |
Example:
| rename | ( | ... | ) |
Function: xbmcvfs.rename(file, newFileName) Rename a file
| file | File to rename |
| newFileName | New filename, including the full path |
Example:
| rmdir | ( | ... | ) |
Function: xbmcvfs.rmdir(path) Remove a folder.
| path | Folder to remove |
Example: