Class FileUtils


  • public final class FileUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createEmpty​(java.io.File file)  
      static long diskSpaceUsed​(java.io.File maybeDir)  
      static java.io.File findRelativeToParent​(java.io.File parentDir, java.io.File file)  
      static void touch​(java.io.File file)  
      static void touchExisting​(java.io.File file)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findRelativeToParent

        public static java.io.File findRelativeToParent​(java.io.File parentDir,
                                                        java.io.File file)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • diskSpaceUsed

        public static long diskSpaceUsed​(java.io.File maybeDir)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • touchExisting

        public static void touchExisting​(java.io.File file)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • touch

        public static void touch​(java.io.File file)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • createEmpty

        public static void createEmpty​(java.io.File file)
                                throws java.io.IOException
        Throws:
        java.io.IOException