<ahref=#functionsclass=heading-link><iclass="fas fa-paperclip"></i></a></h3><table><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><ahref=#abs>abs(path) -> string</a></td><td>Gives an absolute version of <code>path</code>.</td></tr><tr><td><ahref=#basename>basename(path) -> string</a></td><td>Gives the basename of <code>path</code>. For the rules,</td></tr><tr><td><ahref=#cd>cd(dir)</a></td><td>Changes directory to <code>dir</code></td></tr><tr><td><ahref=#dir>dir(path) -> string</a></td><td>Returns the directory part of <code>path</code>. For the rules, see Go’s</td></tr><tr><td><ahref=#glob>glob(pattern) -> matches (table)</a></td><td>Glob all files and directories that match the pattern.</td></tr><tr><td><ahref=#join>join(…) -> string</a></td><td>Takes paths and joins them together with the OS’s</td></tr><tr><td><ahref=#mkdir>mkdir(name, recursive)</a></td><td>Makes a directory called <code>name</code>. If <code>recursive</code> is true, it will create its parent directories.</td></tr><tr><td><ahref=#readdir>readdir(dir) -> {}</a></td><td>Returns a table of files in <code>dir</code>.</td></tr><tr><td><ahref=#stat>stat(path) -> {}</a></td><td>Returns a table of info about the <code>path</code>.</td></tr></tbody></table><hr><divid=abs><h4class=heading>fs.abs(path) -> string
<ahref=#absclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Gives an absolute version of <code>path</code>.</p><h5id=parametersclass=heading>Parameters
<ahref=#parametersclass=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=basename><h4class=heading>fs.basename(path) -> string
<ahref=#basenameclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Gives the basename of <code>path</code>. For the rules,
<ahref=#parameters-1class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=cd><h4class=heading>fs.cd(dir)
<ahref=#cdclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Changes directory to <code>dir</code></p><h5id=parameters-2class=heading>Parameters
<ahref=#parameters-2class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=dir><h4class=heading>fs.dir(path) -> string
<ahref=#dirclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Returns the directory part of <code>path</code>. For the rules, see Go’s
<ahref=#parameters-3class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=glob><h4class=heading>fs.glob(pattern) -> matches (table)
<ahref=#globclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Glob all files and directories that match the pattern.
<ahref=#parameters-4class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=join><h4class=heading>fs.join(...) -> string
<ahref=#joinclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Takes paths and joins them together with the OS’s
<ahref=#parameters-5class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=mkdir><h4class=heading>fs.mkdir(name, recursive)
<ahref=#mkdirclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Makes a directory called <code>name</code>. If <code>recursive</code> is true, it will create its parent directories.</p><h5id=parameters-6class=heading>Parameters
<ahref=#parameters-6class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=readdir><h4class=heading>fs.readdir(dir) -> {}
<ahref=#readdirclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Returns a table of files in <code>dir</code>.</p><h5id=parameters-7class=heading>Parameters
<ahref=#parameters-7class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p></div><hr><divid=stat><h4class=heading>fs.stat(path) -> {}
<ahref=#statclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Returns a table of info about the <code>path</code>.