public static void copy(File src, File dest) throws IOException { copy(src, dest, fileUtilParams); } /**
File webXmlFile = FileUtil.toFile(webXmlUrl); FileUtil.copy(webXmlFile, webInfFolder);
public static void copy(String src, String dest) throws IOException { copy(file(src), file(dest), fileUtilParams); }
public static void copy(String src, String dest, FileUtilParams params) throws IOException { copy(file(src), file(dest), params); }
/** * @see #copy(File, File) */ public static void copy(final String src, final String dest) throws IOException { copy(file(src), file(dest)); }
@Test void testFileManipulation() throws IOException { FileUtil.copy(new File(dataRoot, "sb.data"), new File(dataRoot, "sb1.data")); assertFalse(FileUtil.isNewer(new File(dataRoot, "sb.data"), new File(dataRoot, "sb1.data"))); assertFalse(FileUtil.isOlder(new File(dataRoot, "sb.data"), new File(dataRoot, "sb1.data"))); FileUtil.delete(new File(dataRoot, "sb1.data")); }
/** * @see #copy(File, File) */ public static void copy(final String src, final String dest) throws IOException { copy(file(src), file(dest)); }