PageRenderTime 57ms CodeModel.GetById 51ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/42docs/users-guide/bsh-commands-file.html

#
HTML | 23 lines | 23 code | 0 blank | 0 comment | 0 complexity | 93d8922c84c660f72f242f5da7f55934 MD5 | raw file
 1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>File Management Commands</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="jEdit 4.2 User's Guide"><link rel="up" href="bsh-commands.html" title="Chapter 16. BeanShell Commands"><link rel="previous" href="bsh-commands-output.html" title="Output Commands"><link rel="next" href="bsh-commands-serial.html" title="Component Commands"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">File Management Commands</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="bsh-commands-output.html">Prev</a> </td><th width="60%" align="center">Chapter 16. BeanShell Commands</th><td width="20%" align="right"> <a accesskey="n" href="bsh-commands-serial.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="bsh-commands-file"></a>File Management Commands</h2></div></div><div></div></div><div class="itemizedlist"><ul type="disc"><li><div class="funcsynopsis"><p><code class="funcdef">void <b class="fsfunc">cd</b>(</code>String <var class="pdparam">dirname</var><code>)</code>;</p></div><p>
 2        Changes the working directory of the BeanShell interpreter
 3        to <i class="parameter"><tt>dirname</tt></i>.
 4      </p></li><li><div class="funcsynopsis"><p><code class="funcdef">void <b class="fsfunc">cp</b>(</code>String <var class="pdparam">fromFile</var>, String <var class="pdparam">toFile</var><code>)</code>;</p></div><p>
 5        Copy <i class="parameter"><tt>fromFile</tt></i> to <i class="parameter"><tt>toFile</tt></i>.
 6      </p></li><li><div class="funcsynopsis"><p><code class="funcdef">void <b class="fsfunc">dir</b>(</code>String <var class="pdparam">dirname</var><code>)</code>;</p></div><p>
 7        Displays the contents of directory <i class="parameter"><tt>dirname</tt></i>.
 8        The format of the display is similar to the Unix
 9        <tt class="function">ls -l</tt> command.
10      </p></li><li><div class="funcsynopsis"><p><code class="funcdef">void <b class="fsfunc">mv</b>(</code>String <var class="pdparam">fromFile</var>, String <var class="pdparam">toFile</var><code>)</code>;</p></div><p>
11        Moves the file named by <i class="parameter"><tt>fromFile</tt></i> to
12        <i class="parameter"><tt>toFile</tt></i>.
13      </p></li><li><div class="funcsynopsis"><p><code class="funcdef">File <b class="fsfunc">pathToFile</b>(</code>String <var class="pdparam">filename</var><code>)</code>;</p></div><p>
14        Create a <tt class="classname">File</tt> object corresponding to
15        <tt class="function">filename</tt>.  Relative paths are resolved with
16        reference to the BeanShell interpreter's working
17        directory.
18      </p></li><li><div class="funcsynopsis"><p><code class="funcdef">void <b class="fsfunc">pwd</b>(</code><code>void)</code>;</p></div><p>
19        Writes the current working directory of the BeanShell interpreter
20        to the output stream of the current process.
21      </p></li><li><div class="funcsynopsis"><p><code class="funcdef">void <b class="fsfunc">rm</b>(</code>String <var class="pdparam">pathname</var><code>)</code>;</p></div><p>
22        Deletes the file name by <i class="parameter"><tt>pathname</tt></i>.
23      </p></li></ul></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="bsh-commands-output.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="bsh-commands.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="bsh-commands-serial.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Output Commands </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Component Commands</td></tr></table></div></body></html>