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>removes a directory</refpurpose>
20
<title>Calling Sequence</title>
24
[status, message] = rmdir(dirname,'s')
28
<title>Arguments</title>
33
<para>a character string.</para>
40
a mark to remove directory <varname>dirname</varname> with
48
<para>a boolean.</para>
55
a character string: a message about an error.
62
<title>Description</title>
64
<code>rmdir(dirname)</code> removes the directory
65
<varname>dirname</varname> from the current directory. If the
66
directory is not empty, you must use the s argument. If
67
<varname>dirname</varname> is not in the current directory, specify
68
the relative path to the current directory or the full path for
69
<varname>dirname</varname>.
72
<code>rmdir(dirname,'s')</code> removes the directory <varname>dirname</varname> and its contents from the current directory.
75
<code>[status, message] = rmdir(dirname,'s')</code> removes the
76
directory <varname>dirname</varname> and its contents from the
77
current directory, returning the status, and a message. Here,
78
<varname>status</varname> is 1 for success and is 0 for error.
81
Whatever the operating system, if the removing of directory
82
succeeds, the <varname>status</varname> is 1 and the message
83
<varname>message</varname> is empty.
87
<title>Examples</title>
88
<programlisting role="example"><![CDATA[
89
mkdir(SCI,'Directory')
90
rmdir(SCI+'/Directory')
93
<refsection role="see also">
94
<title>See Also</title>
95
<simplelist type="inline">
97
<link linkend="createdir">createdir</link>
100
<link linkend="mkdir">mkdir</link>
103
<link linkend="removedir">removedir</link>