diff --git a/docs/api/fs.md b/docs/api/fs.md index 0ee4830..bc14055 100644 --- a/docs/api/fs.md +++ b/docs/api/fs.md @@ -167,9 +167,6 @@ fs.mkdir(name, recursive) Creates a new directory with the provided `name`. With `recursive`, mkdir will create parent directories. --- This will create the directory foo, then create the directory bar in the --- foo directory. If recursive is false in this case, it will fail. -fs.mkdir('./foo/bar', true) #### Parameters `string` **`name`** @@ -180,7 +177,9 @@ Whether to create parent directories for the provided name #### Example ```lua - +-- This will create the directory foo, then create the directory bar in the +-- foo directory. If recursive is false in this case, it will fail. +fs.mkdir('./foo/bar', true) ``` diff --git a/emmyLuaDocs/fs.lua b/emmyLuaDocs/fs.lua index 6efc2eb..89a418b 100644 --- a/emmyLuaDocs/fs.lua +++ b/emmyLuaDocs/fs.lua @@ -31,9 +31,7 @@ function fs.join(...path) end --- Creates a new directory with the provided `name`. --- With `recursive`, mkdir will create parent directories. --- ---- -- This will create the directory foo, then create the directory bar in the ---- -- foo directory. If recursive is false in this case, it will fail. ---- fs.mkdir('./foo/bar', true) +--- function fs.mkdir(name, recursive) end --- Returns a list of all files and directories in the provided path. diff --git a/golibs/fs/fs.go b/golibs/fs/fs.go index 848d82c..5bd22c6 100644 --- a/golibs/fs/fs.go +++ b/golibs/fs/fs.go @@ -198,6 +198,7 @@ func fjoin(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { -- This will create the directory foo, then create the directory bar in the -- foo directory. If recursive is false in this case, it will fail. fs.mkdir('./foo/bar', true) +#example */ func fmkdir(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { if err := c.CheckNArgs(2); err != nil {