Class FileUtils


  • public class FileUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copyFile​(java.io.File from, java.io.File to)  
      static void deleteFolder​(java.io.File folder)  
      static void emptyFolder​(java.io.File folder)  
      static java.lang.String getNamesAsCommaSeparatedList​(java.lang.Iterable<java.io.File> files)  
      static java.io.File join​(java.io.File dir, java.lang.String... paths)  
      static java.lang.String relativePath​(java.io.File file, java.io.File dir)  
      static java.lang.String sha1​(java.io.File file)  
      • Methods inherited from class java.lang.Object

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

      • FileUtils

        public FileUtils()
    • Method Detail

      • deleteFolder

        public static void deleteFolder​(java.io.File folder)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • emptyFolder

        public static void emptyFolder​(java.io.File folder)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • copyFile

        public static void copyFile​(java.io.File from,
                                    java.io.File to)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • join

        public static java.io.File join​(java.io.File dir,
                                        java.lang.String... paths)
      • relativePath

        public static java.lang.String relativePath​(@NonNull
                                                    java.io.File file,
                                                    @NonNull
                                                    java.io.File dir)
      • sha1

        public static java.lang.String sha1​(@NonNull
                                            java.io.File file)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getNamesAsCommaSeparatedList

        public static java.lang.String getNamesAsCommaSeparatedList​(java.lang.Iterable<java.io.File> files)