<ahref=#fsabspath---stringclass=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><h4id=fsbasenamepath---stringclass=heading>fs.basename(path) -> string
<ahref=#fsbasenamepath---stringclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Gives the basename of <code>path</code>. For the rules,
see Go’s filepath.Base</p><h5id=parameters-1class=heading>Parameters
<ahref=#parameters-1class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p><h4id=fscddirclass=heading>fs.cd(dir)
<ahref=#fscddirclass=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><h4id=fsdirpath---stringclass=heading>fs.dir(path) -> string
<ahref=#fsdirpath---stringclass=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><h4id=fsglobpattern---matches-tableclass=heading>fs.glob(pattern) -> matches (table)
<ahref=#fsglobpattern---matches-tableclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Glob all files and directories that match the pattern.
For the rules, see Go’s filepath.Glob</p><h5id=parameters-4class=heading>Parameters
<ahref=#parameters-4class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p><h4id=fsjoin---stringclass=heading>fs.join(…) -> string
<ahref=#fsjoin---stringclass=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Takes paths and joins them together with the OS’s
directory separator (forward or backward slash).</p><h5id=parameters-5class=heading>Parameters
<ahref=#parameters-5class=heading-link><iclass="fas fa-paperclip"></i></a></h5><p>This function has no parameters.</p><h4id=fsmkdirname-recursiveclass=heading>fs.mkdir(name, recursive)
<ahref=#fsmkdirname-recursiveclass=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><h4id=fsreaddirdir--class=heading>fs.readdir(dir) ->
<ahref=#fsreaddirdir--class=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><h4id=fsstatpath--class=heading>fs.stat(path) ->
<ahref=#fsstatpath--class=heading-link><iclass="fas fa-paperclip"></i></a></h4><p>Returns a table of info about the <code>path</code>.
It contains the following keys:
name (string) - Name of the path
size (number) - Size of the path
mode (string) - Permission mode in an octal format string (with leading 0)
isDir (boolean) - If the path is a directory</p><h5id=parameters-8class=heading>Parameters