236237238239240241242243244245
* @param target */ public static void copy(File source, File target) { try { new CopyFileCommand(source, target).execute(); } catch (Exception e) { throw Lang.uncheck(e); } }
259260261262263264265266267
* @param target */ public static void move(File source, File target) { new FileCommandInvoker().command(new MakeFileCommand(target)) .command(new CopyFileCommand(source, target)) .command(new DeleteFileCommand(source)) .invoke(); }