diff options
author | Otto Modinos <ottomodinos@gmail.com> | 2014-08-31 01:23:03 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-31 00:58:27 +0200 |
commit | a910b5c6df1c257ae3b4be62030e48ff9ffb6bad (patch) | |
tree | 052c72631e8cbc125537bef0b33eba1262065c81 /DOCS | |
parent | 895687844829068999869326de3cb9174e5fb496 (diff) |
lua: expose mp_getcwd through mp.utils
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/lua.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 1b0f77cead..63aaca4dbd 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -486,6 +486,10 @@ This built-in module provides generic helper functions for Lua, and have strictly speaking nothing to do with mpv or video/audio playback. They are provided for convenience. Most compensate for Lua's scarce standard library. +``utils.getcwd()`` + Returns the directory that mpv was launched from. On error, ``nil, error`` + is returned. + ``utils.readdir(path [, filter])`` Enumerate all entries at the given path on the filesystem, and return them as array. Each entry is a directory entry (without the path). |