public class FileUtils
extends java.lang.Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyDirectory(java.nio.file.Path sourceDir,
java.nio.file.Path destDir)
Copies a directory from the source path to the destination path.
|
static void |
deleteDirectory(java.nio.file.Path dir)
Deletes a directory and all its contents.
|
static java.nio.file.Path |
getGradleHome()
Returns the path to the Gradle caches directory,
~/.gradle/caches. |
public static java.nio.file.Path getGradleHome()
~/.gradle/caches.
Callers append their own subdirectory beneath it, for example github for
downloaded release assets or github-source for source builds.
public static void copyDirectory(java.nio.file.Path sourceDir,
java.nio.file.Path destDir)
throws java.io.IOException
sourceDir - the path to the source directorydestDir - the path to the destination directoryjava.io.IOException - if an I/O error occurspublic static void deleteDirectory(java.nio.file.Path dir)
throws java.io.IOException
dir - the path to the directory to deletejava.io.IOException - if an I/O error occurs