yword">val</span> chop_extension</span> : <code class="type">string -&gt; string</code></pre><div class="info ">
Return the given file name without its extension. The extension
   is the shortest suffix starting with a period and not including
   a directory separator, <code class="code">.xyz</code> for instance.
<p>

   Raise <code class="code"><span class="constructor">Invalid_argument</span></code> if the given name does not contain
   an extension.<br>
</p></div>

<pre><span id="VALbasename"><span class