From c603d6a9f35ddcb14c2697e9c155ad23d5b80d58 Mon Sep 17 00:00:00 2001 From: Myk Date: Fri, 8 Apr 2022 23:06:54 -0700 Subject: [PATCH] Move docs for include_prefix param to correct function It was listed under listdir, but it only appears in listdir_recursive --- docs/Lua API.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/Lua API.rst b/docs/Lua API.rst index b785bee49..6b58574de 100644 --- a/docs/Lua API.rst +++ b/docs/Lua API.rst @@ -2266,8 +2266,6 @@ unless otherwise noted. * ``dfhack.filesystem.listdir(path)`` Lists files/directories in a directory. Returns ``{}`` if ``path`` does not exist. - Set include_prefix to false if you don't want the ``path`` string prepended to the - returned filenames. * ``dfhack.filesystem.listdir_recursive(path [, depth = 10[, include_prefix = true]])`` @@ -2278,7 +2276,8 @@ unless otherwise noted. Note that ``listdir()`` returns only the base name of each directory entry, while ``listdir_recursive()`` returns the initial path and all components following it - for each entry. + for each entry. Set ``include_prefix`` to false if you don't want the ``path`` + string prepended to the returned filenames. Console API -----------