autodoc.git / traditional_manual / chapter_9.html

version» Context lines:

autodoc.git/traditional_manual/chapter_9.html:4666:   <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>. If there is    no system function for cp, a new file will be created and the -  old one copied manually in chunks of 65536 bytes. +  old one copied manually in chunks of <code>DATA_CHUNK_SIZE</code> bytes.    This function can also copy directories recursively.</p>   </dd>   <dt class='head--doc'>Returns</dt>   <dd class='body--doc'><p>0 on error, 1 on success</p>   </dd>   <dt class='head--doc'>Note</dt>   <dd class='body--doc'><p>This function keeps file and directory permissions unlike in Pike 7.6 and    earlier</p>   </dd></dl>