mirror of https://github.com/Hilbis/Hilbish
chore: merge from remote
commit
587d08773f
|
@ -1,7 +1,16 @@
|
||||||
abs(path) > Gives an absolute version of `path`.
|
abs(path) > Gives an absolute version of `path`.
|
||||||
|
|
||||||
|
basename(path) > Gives the basename of `path`. For the rules,
|
||||||
|
see Go's filepath.Base
|
||||||
|
|
||||||
cd(dir) > Changes directory to `dir`
|
cd(dir) > Changes directory to `dir`
|
||||||
|
|
||||||
|
dir(path) > Returns the directory part of `path`. For the rules, see Go's
|
||||||
|
filepath.Dir
|
||||||
|
|
||||||
|
glob(pattern) > Glob all files and directories that match the pattern.
|
||||||
|
For the rules, see Go's filepath.Glob
|
||||||
|
|
||||||
mkdir(name, recursive) > Makes a directory called `name`. If `recursive` is true, it will create its parent directories.
|
mkdir(name, recursive) > Makes a directory called `name`. If `recursive` is true, it will create its parent directories.
|
||||||
|
|
||||||
readdir(dir) > Returns a table of files in `dir`
|
readdir(dir) > Returns a table of files in `dir`
|
||||||
|
|
|
@ -6,10 +6,22 @@ local fs = {}
|
||||||
--- @param path string
|
--- @param path string
|
||||||
function fs.abs(path) end
|
function fs.abs(path) end
|
||||||
|
|
||||||
|
--- Gives the basename of `path`. For the rules,
|
||||||
|
--- see Go's filepath.Base
|
||||||
|
function fs.basename() end
|
||||||
|
|
||||||
--- Changes directory to `dir`
|
--- Changes directory to `dir`
|
||||||
--- @param dir string
|
--- @param dir string
|
||||||
function fs.cd(dir) end
|
function fs.cd(dir) end
|
||||||
|
|
||||||
|
--- Returns the directory part of `path`. For the rules, see Go's
|
||||||
|
--- filepath.Dir
|
||||||
|
function fs.dir() end
|
||||||
|
|
||||||
|
--- Glob all files and directories that match the pattern.
|
||||||
|
--- For the rules, see Go's filepath.Glob
|
||||||
|
function fs.glob() end
|
||||||
|
|
||||||
--- Makes a directory called `name`. If `recursive` is true, it will create its parent directories.
|
--- Makes a directory called `name`. If `recursive` is true, it will create its parent directories.
|
||||||
--- @param name string
|
--- @param name string
|
||||||
--- @param recursive boolean
|
--- @param recursive boolean
|
||||||
|
|
Loading…
Reference in New Issue