Class FileOperations


  • public class FileOperations
    extends java.lang.Object
    Static methods for operating on the filesystem.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copy​(com.google.common.collect.ImmutableList<java.nio.file.Path> sourceFiles, java.nio.file.Path destDir)
      Copies sourceFiles to the destDir directory.
      • Methods inherited from class java.lang.Object

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

      • copy

        public static void copy​(com.google.common.collect.ImmutableList<java.nio.file.Path> sourceFiles,
                                java.nio.file.Path destDir)
                         throws java.io.IOException
        Copies sourceFiles to the destDir directory.
        Parameters:
        sourceFiles - the list of source files.
        destDir - the directory to copy the files to.
        Throws:
        java.io.IOException - if the copy fails.