1
<?xml version="1.0" encoding="UTF-8"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2008 - INRIA - Allan CORNET
7
* This file must be used under the terms of the CeCILL.
8
* This source file is licensed as described in the file COPYING, which
9
* you should have received as part of this distribution. The terms
10
* are also available at
11
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
14
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="rmdir">
16
<refname>rmdir</refname>
17
<refpurpose>Remove a directory</refpurpose>
20
<title>Calling Sequence</title>
21
<synopsis>rmdir('dirname')
23
[status,message] = rmdir('dirname','s')
27
<title>Description</title>
28
<para>rmdir('dirname') removes the directory dirname from the current
29
directory. If the directory is not empty, you must use the s argument. If
30
dirname is not in the current directory, specify the relative path to the
31
current directory or the full path for dirname.
33
<para>rmdir('dirname','s') removes the directory dirname and its contents
34
from the current directory.
36
<para>[status, message] = rmdir('dirname','s') removes the directory dirname
37
and its contents from the current directory, returning the status, and a
38
message. Here, status is 1 for success and is 0 for error.
42
<title>Examples</title>
43
<programlisting role="example"><![CDATA[
44
mkdir(SCI,'Directory')
45
rmdir(SCI+'/Directory')
48
<refsection role="see also">
49
<title>See Also</title>
50
<simplelist type="inline">
52
<link linkend="cd">cd</link>
55
<link linkend="dir">dir</link>
58
<link linkend="mkdir">mkdir</link>