FileUtil.copyFile now supports all permutations

This commit is contained in:
nathan 2017-07-29 23:05:57 +02:00
parent b1d4fba159
commit a5cf709801
1 changed files with 16 additions and 1 deletions

View File

@ -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.
*/