mirror of https://github.com/Hilbis/Hilbish
deploy: 0de305a9a3
parent
d5fbac1a72
commit
3417ecac02
|
@ -34,7 +34,7 @@ library offers more functions and will work on any operating system Hilbish does
|
||||||
</span></span><span class=line><span class=ln>2</span><span class=cl><span class=n>print</span><span class=p>(</span><span class=n>fs.join</span><span class=p>(</span><span class=n>hilbish.userDir</span><span class=p>.</span><span class=n>config</span><span class=p>,</span> <span class=s1>'hilbish'</span><span class=p>))</span>
|
</span></span><span class=line><span class=ln>2</span><span class=cl><span class=n>print</span><span class=p>(</span><span class=n>fs.join</span><span class=p>(</span><span class=n>hilbish.userDir</span><span class=p>.</span><span class=n>config</span><span class=p>,</span> <span class=s1>'hilbish'</span><span class=p>))</span>
|
||||||
</span></span><span class=line><span class=ln>3</span><span class=cl><span class=c1>-- -> '/home/user/.config/hilbish' on Linux</span>
|
</span></span><span class=line><span class=ln>3</span><span class=cl><span class=c1>-- -> '/home/user/.config/hilbish' on Linux</span>
|
||||||
</span></span></code></pre></div></div><hr><div id=mkdir><h4 class=heading>fs.mkdir(name, recursive)
|
</span></span></code></pre></div></div><hr><div id=mkdir><h4 class=heading>fs.mkdir(name, recursive)
|
||||||
<a href=#mkdir class=heading-link><i class="fas fa-paperclip"></i></a></h4><p>Creates a new directory with the provided <code>name</code>.<br>With <code>recursive</code>, mkdir will create parent directories.</p><p>– This will create the directory foo, then create the directory bar in the<br>– foo directory. If recursive is false in this case, it will fail.<br>fs.mkdir(’./foo/bar’, true)</p><h5 id=parameters-6 class=heading>Parameters
|
<a href=#mkdir class=heading-link><i class="fas fa-paperclip"></i></a></h4><p>Creates a new directory with the provided <code>name</code>.<br>With <code>recursive</code>, mkdir will create parent directories.<br>– This will create the directory foo, then create the directory bar in the<br>– foo directory. If recursive is false in this case, it will fail.<br>fs.mkdir(’./foo/bar’, true)</p><h5 id=parameters-6 class=heading>Parameters
|
||||||
<a href=#parameters-6 class=heading-link><i class="fas fa-paperclip"></i></a></h5><p><code>string</code> <strong><code>name</code></strong><br>Name of the directory</p><p><code>boolean</code> <strong><code>recursive</code></strong><br>Whether to create parent directories for the provided name</p><h5 id=example-2 class=heading>Example
|
<a href=#parameters-6 class=heading-link><i class="fas fa-paperclip"></i></a></h5><p><code>string</code> <strong><code>name</code></strong><br>Name of the directory</p><p><code>boolean</code> <strong><code>recursive</code></strong><br>Whether to create parent directories for the provided name</p><h5 id=example-2 class=heading>Example
|
||||||
<a href=#example-2 class=heading-link><i class="fas fa-paperclip"></i></a></h5><div class=highlight><pre tabindex=0 class=chroma><code class=language-lua data-lang=lua></code></pre></div></div><hr><div id=readdir><h4 class=heading>fs.readdir(path) -> table[string]
|
<a href=#example-2 class=heading-link><i class="fas fa-paperclip"></i></a></h5><div class=highlight><pre tabindex=0 class=chroma><code class=language-lua data-lang=lua></code></pre></div></div><hr><div id=readdir><h4 class=heading>fs.readdir(path) -> table[string]
|
||||||
<a href=#readdir class=heading-link><i class="fas fa-paperclip"></i></a></h4><p>Returns a list of all files and directories in the provided path.</p><h5 id=parameters-7 class=heading>Parameters
|
<a href=#readdir class=heading-link><i class="fas fa-paperclip"></i></a></h4><p>Returns a list of all files and directories in the provided path.</p><h5 id=parameters-7 class=heading>Parameters
|
||||||
|
|
Loading…
Reference in New Issue