- java.lang.Object
-
- com.powsybl.commons.io.FileUtil
-
public final class FileUtil extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.io.ByteSource
asByteSource(Path path, OpenOption... openOptions)
Simplistic implementation of byte source based on aPath
, waiting for guava 21.static void
copyDir(Path source, Path dest)
static Path
createDirectory(Path directory)
static void
removeDir(Path dir)
-
-
-
Method Detail
-
removeDir
public static void removeDir(Path dir) throws IOException
- Throws:
IOException
-
copyDir
public static void copyDir(Path source, Path dest) throws IOException
- Throws:
IOException
-
asByteSource
public static com.google.common.io.ByteSource asByteSource(Path path, OpenOption... openOptions)
Simplistic implementation of byte source based on aPath
, waiting for guava 21.- Parameters:
path
-openOptions
-- Returns:
-
-