Package dev.aura.bungeechat.util
Class FileUtils
- java.lang.Object
-
- dev.aura.bungeechat.util.FileUtils
-
public final class FileUtils extends Object
Taken from https://stackoverflow.com/a/3348150/1996022
All credit goes to the original author. Only minimal modifications have been made.Marked generated to ignore coverage as this code is confirmed to work
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
copyFile(File toCopy, File destFile)
static boolean
copyFilesRecursively(File toCopy, File destDir)
static boolean
copyFilesRecursively(File toCopy, File destDir, boolean skipFirstDir)
static boolean
copyJarResourcesRecursively(JarURLConnection jarConnection, File destDir)
static boolean
copyResourcesRecursively(URL originUrl, File destination)
-
-
-
Method Detail
-
copyFilesRecursively
public static boolean copyFilesRecursively(File toCopy, File destDir, boolean skipFirstDir)
-
copyJarResourcesRecursively
public static boolean copyJarResourcesRecursively(JarURLConnection jarConnection, File destDir) throws IOException
- Throws:
IOException
-
-