Commons IO
  1. Commons IO
  2. IO-361

Add API FileUtils.forceMkdirsParent()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Utilities
    • Labels:
      None
    • Environment:

      Description

      Add API FileUtils.forceMkdirsParent():

          /**
           * Makes any necessary but nonexistent parent directories for a given File. If the parent directory cannot be
           * created then an IOException is thrown.
           * 
           * @param file
           *            file with parent to create, must not be {@code null}
           * @throws NullPointerException
           *             if the file is {@code null}
           * @throws IOException
           *             if the parent directory cannot be created
           * @since 2.5
           */
          public static void forceMkdirParent(final File file) throws IOException 
      

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1m 9s 1 Gary Gregory 19/Dec/12 16:17
        Gary Gregory made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Gary Gregory added a comment -

        commit -m "IO-361 Add API FileUtils.forceMkdirsParent()." C:/svn/org/apache/commons/trunks-proper/io/src/test/java/org/apache/commons/io/FileUtilsTestCase.java C:/svn/org/apache/commons/trunks-proper/io/src/main/java/org/apache/commons/io/FileUtils.java C:/svn/org/apache/commons/trunks-proper/io/src/changes/changes.xml
        Sending C:/svn/org/apache/commons/trunks-proper/io/src/changes/changes.xml
        Sending C:/svn/org/apache/commons/trunks-proper/io/src/main/java/org/apache/commons/io/FileUtils.java
        Sending C:/svn/org/apache/commons/trunks-proper/io/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
        Transmitting file data ...
        Committed revision 1423916.

        Show
        Gary Gregory added a comment - commit -m " IO-361 Add API FileUtils.forceMkdirsParent()." C:/svn/org/apache/commons/trunks-proper/io/src/test/java/org/apache/commons/io/FileUtilsTestCase.java C:/svn/org/apache/commons/trunks-proper/io/src/main/java/org/apache/commons/io/FileUtils.java C:/svn/org/apache/commons/trunks-proper/io/src/changes/changes.xml Sending C:/svn/org/apache/commons/trunks-proper/io/src/changes/changes.xml Sending C:/svn/org/apache/commons/trunks-proper/io/src/main/java/org/apache/commons/io/FileUtils.java Sending C:/svn/org/apache/commons/trunks-proper/io/src/test/java/org/apache/commons/io/FileUtilsTestCase.java Transmitting file data ... Committed revision 1423916.
        Gary Gregory created issue -

          People

          • Assignee:
            Gary Gregory
            Reporter:
            Gary Gregory
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development