Branch: Tag:

2020-06-10

2020-06-10 21:48:37 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio.Fd: Convert read() into a PIKEFUN.

130:   <hr />   <dl class='group--doc'>   <dt class='head--type'><span class='homogen--type'>Method</span> + <span class='homogen--name'><b>cp</b></span> + </dt> + <dd><p><code><code class='datatype'>int</code> <b><span class='method'>cp</span>(</b><code class='datatype'>string</code> <code class='argument'>from</code>, <code class='datatype'>string</code> <code class='argument'>to</code><b>)</b></code></p></dd> +  + <dt class='head--doc'>Description</dt> + <dd class='body--doc'><p>Copies the file <code>from</code> to the new position <code>to</code>. This is an +  alias for <code>Stdio.cp</code>.</p> + </dd></dl> +  +  + <hr /> + <dl class='group--doc'> + <dt class='head--type'><span class='homogen--type'>Method</span>   <span class='homogen--name'><b>mv</b></span>   </dt>   <dd><p><code><code class='datatype'>int</code> <b><span class='method'>mv</span>(</b><code class='datatype'>string</code> <code class='argument'>from</code>, <code class='datatype'>string</code> <code class='argument'>to</code><b>)</b></code></p></dd>
275:   <dt class='head--doc'>See also</dt>   <dd class='body--doc'><p><code>getcwd()</code>, <code>Stdio.append_path()</code></p>   </dd></dl> +  +  + <hr /> + <dl class='group--doc'> + <dt class='head--type'><span class='homogen--type'>Method</span> + <span class='homogen--name'><b>explode_path</b></span> + </dt> + <dd><p><code><code class='datatype'>array</code>(<code class='datatype'>string</code>) <b><span class='method'>explode_path</span>(</b><code class='datatype'>string</code> <code class='argument'>p</code><b>)</b></code></p></dd> +  + <dt class='head--doc'>Description</dt> + <dd class='body--doc'><p>Split a path <code>p</code> into its components.</p> + <p> This function divides a path into its components. This might seem like +  it could be done by dividing the string on &lt;tt&gt;"/"&lt;/tt&gt;, but that will +  not work on some operating systems. To turn the components back into +  a path again, use <code>combine_path()</code>.</p> + </dd></dl>   </dd>   <dt><a name='9.3'></a>   <h2 class='header'>9.3. Status</h2></dt>