Class FilesHelper


  • public class FilesHelper
    extends java.lang.Object
    Files helper class with generally useful methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      FilesHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean copy​(java.io.File source, java.io.File destination)
      Copy source file to destination file.
      static boolean mkdirs​(java.io.File file)
      Create all directories, including nonexistent parent directories.
      • Methods inherited from class java.lang.Object

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

      • FilesHelper

        public FilesHelper()
    • Method Detail

      • copy

        public static boolean copy​(java.io.File source,
                                   java.io.File destination)
                            throws java.io.IOException
        Copy source file to destination file.
        Parameters:
        source - source
        destination - destination
        Returns:
        status
        Throws:
        java.io.IOException - on error
      • mkdirs

        public static boolean mkdirs​(java.io.File file)
        Create all directories, including nonexistent parent directories.
        Parameters:
        file - file
        Returns:
        status