Availability
| Script Types |
|---|
| Extension, Interface |
When calling a vlc method, sometimes error codes can be returned. This module provides access to a list of these potential error numbers/codes.
These are only useful for the IO module (as far as I know).
List of error values provided by this module:
vlc.errno.ENOENTNo such file or directoryvlc.errno.EEXISTFile exists alreadyvlc.errno.EACCESPermission deniedvlc.errno.EINVALInvalid argument
Example
local c1, c2 = vlc.io.unlink("/this/path/does/not/exist/file.txt")
if c1 == -1 then -- operation failed
if c2 == vlc.errno.ENOENT then
print("Oh no: No such file or directory")
...