1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE>April 1993</DATE>
8
<SHORT_DESCRIPTION name="dirname"> get directory from filenames</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>dirs= dirname(files[,flag [,flagexpand]]) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>files</PARAM_NAME>
17
<SP>: a string matrix giving a set of file names.</SP>
21
<PARAM_NAME>flag,flagexpand</PARAM_NAME>
23
<SP>: boolean optional parameters. (default value <VERB>%t</VERB>).</SP>
27
<PARAM_NAME>files,dir</PARAM_NAME>
29
<SP>: string matrices.</SP>
35
<P><VERB>dirname</VERB> return the dirname of the file entries given in files.</P>
37
If <VERB>flag</VERB> is true the files are first converted to the target
38
type given by the <VERB>MSDOS</VERB> variable.
39
Moreover, if <VERB>flagexpand</VERB> is true leading strings like
40
<VERB>HOME</VERB>, <VERB>SCI</VERB> or <VERB>~</VERB> are expanded using environment
43
Note that <VERB>dirname(files,%f)</VERB> can give erroneous results if
44
pathnames given in files do not follow the convention
45
given by the <VERB>MSDOS</VERB> variable.</P>
49
files=dirname('SCI/macros/util/poo.sci')
50
files=dirname('SCI/macros\util/poo.sci')
51
files=dirname('SCI/macros\util/poo.sci.k')
59
<LINK>listfiles</LINK>
62
<LINK>pathconvert</LINK>