<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>fileparts</TITLE>
  <TYPE>Scilab Function  </TYPE>
  <DATE>18-Sep-2003</DATE>
  <SHORT_DESCRIPTION name="fileparts">returns the path, filename and extension for a file path</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>[path,fname,extension]=fileparts(fullpath)</CALLING_SEQUENCE_ITEM>
    <CALLING_SEQUENCE_ITEM> v=fileparts(fullpath,sel)</CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>fullpath</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>:  a character string, the given file path</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>sel</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: a optional character string selector, with posible values:
       'path' 'fname' or 'extension'</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>path</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: a character string, the path of the directory pointed to by fullpath</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>fname</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP> : a character string, the filename part is any or ''</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>extension</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP> : a character string, the extension part is any or ''</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>value</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP> : a character string, depending on sel value</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P><VERB>[path,fname,extension]=fileparts(fullpath)</VERB> splits the
   fullpath character string in its three parts: the path of the
   directory pointed to, the filename part, the extension part
   including the dot.</P>
  </DESCRIPTION>
  <EXAMPLE>
<![CDATA[
   [path,fname,extension]=fileparts('SCI/scilab.star')
   fileparts('SCI/scilab.star','extension')
  ]]>
  </EXAMPLE>
  <SEE_ALSO>
    <SEE_ALSO_ITEM>
      <LINK> pathconvert</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK> basename</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>fullfile</LINK>
    </SEE_ALSO_ITEM>
  </SEE_ALSO>
  <AUTHOR>
    Serge Steer, INRIA
  </AUTHOR>
</MAN>
