="keyword">val</span> basename</span> : <code class="type">string -&gt; string</code></pre><div class="info ">
Split a file name into directory name / base file name.
   If <code class="code">name</code> is a valid file name, then <code class="code">concat (dirname name) (basename name)</code>
   returns a file name which is equivalent to <code class="code">name</code>. Moreover,
   after setting the current directory to <code class="code">dirname name</code> (with <a href="Sys.html#VALchdir"><code class="c