title: Why use FileUtils.forceMkdir?
body: <p>What is the use of <code>FileUtils.forceMkdir</code> from Apache commons-io instead of <code>File.mkdirs</code> built into the JRE?</p>
  
  <p>The docs to <code>forceMkdir</code> are</p>
  
  <blockquote>
    <p>Makes a directory, including any necessary but nonexistent parent directories. If a file already exists with specified name but it is not a directory then an IOException is thrown. If the directory cannot be created (or does not already exist) then an IOException is thrown.</p>
  </blockquote>
  
  <p>While the docs to <code>mkdirs</code> are</p>
  
  <blockquote>
    <p>Creates the directory named by this abstract pathname, including any necessary but nonexistent parent directories. Note that if this operation fails it may have succeeded in creating some of the necessary parent directories.</p>
  </blockquote>
  
  <p>Is the only difference in the type of exception thrown?</p>