Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Nov 23, 2011
1 parent 8017238 commit 18aaf3a
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 75 deletions.
22 changes: 11 additions & 11 deletions doc/FsTools/copy/index.html
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fs-tools v0.0.1-455d09b API documentation | FsTools.copy</title>
<title>fs-tools v0.0.1-426a816 API documentation | FsTools.copy</title>
<meta name="generator" content="PDoc" />

<script charset="utf-8" src="../../javascripts/pdoc/prototype.js" type="text/javascript"></script>
Expand Down Expand Up @@ -39,8 +39,8 @@

<div class="sidebar-pane scrollable" id="menu_pane">
<ul class="menu-items" id="api_menu"><li><div class="menu-item"><a class="namespace current-parent" href="../../FsTools/index.html" title="FsTools (namespace)">FsTools</a></div><ul><li><div class="menu-item"><a class="class-method current" href="../../FsTools/copy/index.html" title="FsTools.copy (class method)">copy</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/mkdir_p/index.html" title="FsTools.mkdir_p (class method)">mkdir_p</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/rm_rf/index.html" title="FsTools.rm_rf (class method)">rm_rf</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/mkdir/index.html" title="FsTools.mkdir (class method)">mkdir</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/remove/index.html" title="FsTools.remove (class method)">remove</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/walk/index.html" title="FsTools.walk (class method)">walk</a></div></li></ul></li></ul><!--- #api_menu =-->
</div> <!-- .sidebar-pane -->
<div class="sidebar-pane" id="search_pane">
Expand Down Expand Up @@ -73,7 +73,7 @@ <h2 class="page-title">



<p id="src_code_href"><a href="https://github.com/nodeca/fs-tools/blob/455d09b/lib/fs-tools.js#L377">View source on GitHub &rarr;</a></p>
<p id="src_code_href"><a href="https://github.com/nodeca/fs-tools/blob/426a816/lib/fs-tools.js#L465">View source on GitHub &rarr;</a></p>



Expand Down Expand Up @@ -103,24 +103,24 @@ <h2 class="page-title">

<span class="argument-types">(<code>String</code>)</span>

&ndash; Detination file
&ndash; Destination file
</li>

<li>
<code class="argument-name">callback</code>

<span class="argument-types">(<code>Function</code>)</span>

&ndash; Fired after path was copied
&ndash; Fired after path has been copied
</li>

</ul> <!-- .argument-list -->



<p>Copies <code>src</code> to <code>dst</code>, creates directory for given <code>dst</code> with
[[FsTools.mkdir_p]] if needed. After all will fire <code>callback(err)</code> with
an error if there were any.</p>
<code><a href="../../FsTools/mkdir/index.html" title="FsTools.mkdir (class method)">FsTools.mkdir</a></code> if needed. Fires <code>callback(err)</code> upon
completion.</p>

<h5>Example</h5>

Expand All @@ -132,7 +132,7 @@ <h5>Example</h5>
<span class="nx">console</span><span class="p">.</span><span class="nx">err</span><span class="p">(</span><span class="nx">err</span><span class="p">);</span>
<span class="nx">process</span><span class="p">.</span><span class="nx">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span>
<span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s2">&quot;Fone!&quot;</span><span class="p">);</span>
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s2">&quot;Done!&quot;</span><span class="p">);</span>
<span class="nx">process</span><span class="p">.</span><span class="nx">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">});</span>
Expand All @@ -152,10 +152,10 @@ <h5>Example</h5>
</div> <!-- #main -->

<div id="footer">
<p><a href="">fs-tools</a> v0.0.1-455d09b API documentation.</p>
<p><a href="">fs-tools</a> v0.0.1-426a816 API documentation.</p>
<p>

Last updated on October 06, 2011 at 19:56 UTC.
Last updated on November 23, 2011 at 20:13 UTC.

Generated by <a href="http://pdoc.org">PDoc</a>.
Uses <a href="http://famfamfam.com/lab/icons/silk/" title="famfamfam.com: Silk Icons">Silk Icons</a> and portions of <a href="http://github.com/280north/aristo/tree/master" title="280north's aristo at master - GitHub">Aristo</a>.
Expand Down
16 changes: 8 additions & 8 deletions doc/FsTools/index.html
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fs-tools v0.0.1-455d09b API documentation | FsTools</title>
<title>fs-tools v0.0.1-426a816 API documentation | FsTools</title>
<meta name="generator" content="PDoc" />

<script charset="utf-8" src="../javascripts/pdoc/prototype.js" type="text/javascript"></script>
Expand Down Expand Up @@ -39,8 +39,8 @@

<div class="sidebar-pane scrollable" id="menu_pane">
<ul class="menu-items" id="api_menu"><li><div class="menu-item"><a class="namespace current" href="../FsTools/index.html" title="FsTools (namespace)">FsTools</a></div><ul><li><div class="menu-item"><a class="class-method" href="../FsTools/copy/index.html" title="FsTools.copy (class method)">copy</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../FsTools/mkdir_p/index.html" title="FsTools.mkdir_p (class method)">mkdir_p</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../FsTools/rm_rf/index.html" title="FsTools.rm_rf (class method)">rm_rf</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../FsTools/mkdir/index.html" title="FsTools.mkdir (class method)">mkdir</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../FsTools/remove/index.html" title="FsTools.remove (class method)">remove</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../FsTools/walk/index.html" title="FsTools.walk (class method)">walk</a></div></li></ul></li></ul><!--- #api_menu =-->
</div> <!-- .sidebar-pane -->
<div class="sidebar-pane" id="search_pane">
Expand Down Expand Up @@ -71,7 +71,7 @@ <h2 class="page-title">



<p id="src_code_href"><a href="https://github.com/nodeca/fs-tools/blob/455d09b/lib/fs-tools.js#L6">View source on GitHub &rarr;</a></p>
<p id="src_code_href"><a href="https://github.com/nodeca/fs-tools/blob/426a816/lib/fs-tools.js#L6">View source on GitHub &rarr;</a></p>



Expand Down Expand Up @@ -113,9 +113,9 @@ <h3>Class methods</h3>
<ul class="method-list">
<li><code><a class="class-method" href="../FsTools/copy/index.html" title="FsTools.copy (class method)">copy</a></code></li>

<li><code><a class="class-method" href="../FsTools/mkdir_p/index.html" title="FsTools.mkdir_p (class method)">mkdir_p</a></code></li>
<li><code><a class="class-method" href="../FsTools/mkdir/index.html" title="FsTools.mkdir (class method)">mkdir</a></code></li>

<li><code><a class="class-method" href="../FsTools/rm_rf/index.html" title="FsTools.rm_rf (class method)">rm_rf</a></code></li>
<li><code><a class="class-method" href="../FsTools/remove/index.html" title="FsTools.remove (class method)">remove</a></code></li>

<li><code><a class="class-method" href="../FsTools/walk/index.html" title="FsTools.walk (class method)">walk</a></code></li>

Expand Down Expand Up @@ -144,10 +144,10 @@ <h3>Class methods</h3>
</div> <!-- #main -->

<div id="footer">
<p><a href="">fs-tools</a> v0.0.1-455d09b API documentation.</p>
<p><a href="">fs-tools</a> v0.0.1-426a816 API documentation.</p>
<p>

Last updated on October 06, 2011 at 19:56 UTC.
Last updated on November 23, 2011 at 20:13 UTC.

Generated by <a href="http://pdoc.org">PDoc</a>.
Uses <a href="http://famfamfam.com/lab/icons/silk/" title="famfamfam.com: Silk Icons">Silk Icons</a> and portions of <a href="http://github.com/280north/aristo/tree/master" title="280north's aristo at master - GitHub">Aristo</a>.
Expand Down
51 changes: 19 additions & 32 deletions doc/FsTools/mkdir_p/index.html → doc/FsTools/mkdir/index.html
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fs-tools v0.0.1-455d09b API documentation | FsTools.mkdir_p</title>
<title>fs-tools v0.0.1-426a816 API documentation | FsTools.mkdir</title>
<meta name="generator" content="PDoc" />

<script charset="utf-8" src="../../javascripts/pdoc/prototype.js" type="text/javascript"></script>
Expand Down Expand Up @@ -39,8 +39,8 @@

<div class="sidebar-pane scrollable" id="menu_pane">
<ul class="menu-items" id="api_menu"><li><div class="menu-item"><a class="namespace current-parent" href="../../FsTools/index.html" title="FsTools (namespace)">FsTools</a></div><ul><li><div class="menu-item"><a class="class-method" href="../../FsTools/copy/index.html" title="FsTools.copy (class method)">copy</a></div></li>
<li><div class="menu-item"><a class="class-method current" href="../../FsTools/mkdir_p/index.html" title="FsTools.mkdir_p (class method)">mkdir_p</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/rm_rf/index.html" title="FsTools.rm_rf (class method)">rm_rf</a></div></li>
<li><div class="menu-item"><a class="class-method current" href="../../FsTools/mkdir/index.html" title="FsTools.mkdir (class method)">mkdir</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/remove/index.html" title="FsTools.remove (class method)">remove</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/walk/index.html" title="FsTools.walk (class method)">walk</a></div></li></ul></li></ul><!--- #api_menu =-->
</div> <!-- .sidebar-pane -->
<div class="sidebar-pane" id="search_pane">
Expand All @@ -63,17 +63,17 @@

<li>&rarr; <a href="../../FsTools/index.html" title="FsTools (namespace)">FsTools</a></li>

<li>&rarr; <a href="../../FsTools/mkdir_p/index.html" title="FsTools.mkdir_p (class method)">mkdir_p</a></li>
<li>&rarr; <a href="../../FsTools/mkdir/index.html" title="FsTools.mkdir (class method)">mkdir</a></li>

</ul>

<h2 class="page-title">
<span class="type">class method</span> FsTools.mkdir_p
<span class="type">class method</span> FsTools.mkdir
</h2>



<p id="src_code_href"><a href="https://github.com/nodeca/fs-tools/blob/455d09b/lib/fs-tools.js#L317">View source on GitHub &rarr;</a></p>
<p id="src_code_href"><a href="https://github.com/nodeca/fs-tools/blob/426a816/lib/fs-tools.js#L401">View source on GitHub &rarr;</a></p>



Expand All @@ -86,37 +86,24 @@ <h2 class="page-title">
<div class="section-content">
<div class="method-description">

<pre class="syntax"><code class="ebnf">FsTools.mkdir_p(path, callback) &rarr; void</code></pre>

<ul class="argument-list">

<li>
<code class="argument-name">path</code>

<span class="argument-types">(<code>String</code>)</span>

&ndash; Path to create
</li>

<li>
<code class="argument-name">callback</code>

<span class="argument-types">(<code>Function</code>)</span>

&ndash; Fired after path was created
</li>

</ul> <!-- .argument-list -->
<pre class="syntax"><code class="ebnf">FsTools.mkdir(path, mode, callback) &rarr; void<br />FsTools.mkdir(path, callback) &rarr; void</code></pre>



<p>Creates given path, creating parents recursively if needed.
Similar to UNIX' <code>mkdir -p &lt;path&gt;</code>. After all will fire <code>callback(err)</code> with
<ul>
<li>path (String): Path to create</li>
<li>mode (String|Number): Permission mode of new directory. See stdlib
fs.mkdir for details. Default: '0755'.</li>
<li>callback (Function): Fired after path was created</li>
</ul>

<p>Creates given path, creating parents recursively if needed.
Similar to UNIX' <code>mkdir -pf &lt;path&gt;</code>. After all will fire <code>callback(err)</code> with
an error if there were any.</p>

<h5>Example</h5>

<div class="highlight"><pre><span class="nx">fstools</span><span class="p">.</span><span class="nx">mkdir_p</span><span class="p">(</span><span class="s1">&#39;/home/nodeca/media/xxx&#39;</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">err</span><span class="p">)</span> <span class="p">{</span>
<div class="highlight"><pre><span class="nx">fstools</span><span class="p">.</span><span class="nx">mkdir</span><span class="p">(</span><span class="s1">&#39;/home/nodeca/media/xxx&#39;</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">err</span><span class="p">)</span> <span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="nx">err</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s2">&quot;Can&#39;t&#39; create directory&quot;</span><span class="p">);</span>
<span class="nx">console</span><span class="p">.</span><span class="nx">err</span><span class="p">(</span><span class="nx">err</span><span class="p">);</span>
Expand All @@ -142,10 +129,10 @@ <h5>Example</h5>
</div> <!-- #main -->

<div id="footer">
<p><a href="">fs-tools</a> v0.0.1-455d09b API documentation.</p>
<p><a href="">fs-tools</a> v0.0.1-426a816 API documentation.</p>
<p>

Last updated on October 06, 2011 at 19:56 UTC.
Last updated on November 23, 2011 at 20:13 UTC.

Generated by <a href="http://pdoc.org">PDoc</a>.
Uses <a href="http://famfamfam.com/lab/icons/silk/" title="famfamfam.com: Silk Icons">Silk Icons</a> and portions of <a href="http://github.com/280north/aristo/tree/master" title="280north's aristo at master - GitHub">Aristo</a>.
Expand Down
20 changes: 10 additions & 10 deletions doc/FsTools/rm_rf/index.html → doc/FsTools/remove/index.html
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fs-tools v0.0.1-455d09b API documentation | FsTools.rm_rf</title>
<title>fs-tools v0.0.1-426a816 API documentation | FsTools.remove</title>
<meta name="generator" content="PDoc" />

<script charset="utf-8" src="../../javascripts/pdoc/prototype.js" type="text/javascript"></script>
Expand Down Expand Up @@ -39,8 +39,8 @@

<div class="sidebar-pane scrollable" id="menu_pane">
<ul class="menu-items" id="api_menu"><li><div class="menu-item"><a class="namespace current-parent" href="../../FsTools/index.html" title="FsTools (namespace)">FsTools</a></div><ul><li><div class="menu-item"><a class="class-method" href="../../FsTools/copy/index.html" title="FsTools.copy (class method)">copy</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/mkdir_p/index.html" title="FsTools.mkdir_p (class method)">mkdir_p</a></div></li>
<li><div class="menu-item"><a class="class-method current" href="../../FsTools/rm_rf/index.html" title="FsTools.rm_rf (class method)">rm_rf</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/mkdir/index.html" title="FsTools.mkdir (class method)">mkdir</a></div></li>
<li><div class="menu-item"><a class="class-method current" href="../../FsTools/remove/index.html" title="FsTools.remove (class method)">remove</a></div></li>
<li><div class="menu-item"><a class="class-method" href="../../FsTools/walk/index.html" title="FsTools.walk (class method)">walk</a></div></li></ul></li></ul><!--- #api_menu =-->
</div> <!-- .sidebar-pane -->
<div class="sidebar-pane" id="search_pane">
Expand All @@ -63,17 +63,17 @@

<li>&rarr; <a href="../../FsTools/index.html" title="FsTools (namespace)">FsTools</a></li>

<li>&rarr; <a href="../../FsTools/rm_rf/index.html" title="FsTools.rm_rf (class method)">rm_rf</a></li>
<li>&rarr; <a href="../../FsTools/remove/index.html" title="FsTools.remove (class method)">remove</a></li>

</ul>

<h2 class="page-title">
<span class="type">class method</span> FsTools.rm_rf
<span class="type">class method</span> FsTools.remove
</h2>



<p id="src_code_href"><a href="https://github.com/nodeca/fs-tools/blob/455d09b/lib/fs-tools.js#L256">View source on GitHub &rarr;</a></p>
<p id="src_code_href"><a href="https://github.com/nodeca/fs-tools/blob/426a816/lib/fs-tools.js#L355">View source on GitHub &rarr;</a></p>



Expand All @@ -86,7 +86,7 @@ <h2 class="page-title">
<div class="section-content">
<div class="method-description">

<pre class="syntax"><code class="ebnf">FsTools.rm_rf(path, callback) &rarr; void</code></pre>
<pre class="syntax"><code class="ebnf">FsTools.remove(path, callback) &rarr; void</code></pre>

<ul class="argument-list">

Expand Down Expand Up @@ -118,7 +118,7 @@ <h2 class="page-title">

<h5>Example</h5>

<div class="highlight"><pre><span class="nx">fstools</span><span class="p">.</span><span class="nx">rm_rf</span><span class="p">(</span><span class="s1">&#39;/home/nodeca/trash&#39;</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">err</span><span class="p">)</span> <span class="p">{</span>
<div class="highlight"><pre><span class="nx">fstools</span><span class="p">.</span><span class="nx">remove</span><span class="p">(</span><span class="s1">&#39;/home/nodeca/trash&#39;</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">err</span><span class="p">)</span> <span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="nx">err</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s2">&quot;U can&#39;t touch that&quot;</span><span class="p">);</span>
<span class="nx">console</span><span class="p">.</span><span class="nx">err</span><span class="p">(</span><span class="nx">err</span><span class="p">);</span>
Expand All @@ -144,10 +144,10 @@ <h5>Example</h5>
</div> <!-- #main -->

<div id="footer">
<p><a href="">fs-tools</a> v0.0.1-455d09b API documentation.</p>
<p><a href="">fs-tools</a> v0.0.1-426a816 API documentation.</p>
<p>

Last updated on October 06, 2011 at 19:56 UTC.
Last updated on November 23, 2011 at 20:13 UTC.

Generated by <a href="http://pdoc.org">PDoc</a>.
Uses <a href="http://famfamfam.com/lab/icons/silk/" title="famfamfam.com: Silk Icons">Silk Icons</a> and portions of <a href="http://github.com/280north/aristo/tree/master" title="280north's aristo at master - GitHub">Aristo</a>.
Expand Down

0 comments on commit 18aaf3a

Please sign in to comment.