diff --git a/src/dorkbox/util/FileUtil.java b/src/dorkbox/util/FileUtil.java index 3555c0c..c45655f 100644 --- a/src/dorkbox/util/FileUtil.java +++ b/src/dorkbox/util/FileUtil.java @@ -251,6 +251,22 @@ class FileUtil { } } + /** + * Copies a files from one location to another. Overwriting any existing file at the destination. + */ + public static + File copyFile(String in, File out) throws IOException { + return copyFile(new File(in), out); + } + + /** + * Copies a files from one location to another. Overwriting any existing file at the destination. + */ + public static + File copyFile(File in, String out) throws IOException { + return copyFile(in, new File(out)); + } + /** * Copies a files from one location to another. Overwriting any existing file at the destination. */ @@ -259,7 +275,6 @@ class FileUtil { return copyFile(new File(in), new File(out)); } - /** * Copies a files from one location to another. Overwriting any existing file at the destination. */