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 booleancopyFile(File toCopy, File destFile)static booleancopyFilesRecursively(File toCopy, File destDir)static booleancopyFilesRecursively(File toCopy, File destDir, boolean skipFirstDir)static booleancopyJarResourcesRecursively(JarURLConnection jarConnection, File destDir)static booleancopyResourcesRecursively(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
-
-