Class FileUtil

java.lang.Object
com.powsybl.commons.io.FileUtil

public final class FileUtil extends Object
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • Method Details

    • removeDir

      public static void removeDir(Path dir) throws IOException
      Throws:
      IOException
    • copyDir

      public static void copyDir(Path source, Path dest) throws IOException
      Throws:
      IOException
    • createDirectory

      public static Path createDirectory(Path directory)
    • asByteSource

      public static com.google.common.io.ByteSource asByteSource(Path path, OpenOption... openOptions)
      Simplistic implementation of byte source based on a Path, waiting for guava 21.
      Parameters:
      path -
      openOptions -
      Returns: