public final class FileUtil extends Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.io.ByteSource |
asByteSource(Path path,
OpenOption... openOptions)
Simplistic implementation of byte source based on a
Path , waiting for guava 21. |
static void |
copyDir(Path source,
Path dest) |
static Path |
createDirectory(Path directory) |
static void |
removeDir(Path dir) |
public static void removeDir(Path dir) throws IOException
IOException
public static void copyDir(Path source, Path dest) throws IOException
IOException
public static com.google.common.io.ByteSource asByteSource(Path path, OpenOption... openOptions)
Path
, waiting for guava 21.path
- openOptions
- Copyright © 2020. All rights reserved.