FileUtil.copyFile now supports all permutations
This commit is contained in:
parent
b1d4fba159
commit
a5cf709801
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user