Hilbish/docs/fs.txt

23 lines
701 B
Plaintext
Raw Normal View History

2022-04-23 04:01:54 +00:00
abs(path) > Gives an absolute version of `path`.
2022-06-20 20:47:56 +00:00
basename(path) > Gives the basename of `path`. For the rules,
see Go's filepath.Base
2021-10-16 19:38:49 +00:00
cd(dir) > Changes directory to `dir`
2022-06-20 20:47:56 +00:00
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
2022-07-13 19:46:40 +00:00
join(paths...) > Takes paths and joins them together with the OS's
directory separator (forward or backward slash).
2021-10-16 19:38:49 +00:00
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`
stat(path) > Returns info about `path`
2022-02-25 22:00:39 +00:00