public boolean copy_one_to_one(String[] arg) { File from = new File(arg[0]); File to = new File(arg[1]); if (to.exists() && to.isDirectory()) { to = new File(to, from.getName()); } Base.copyFile(from, to); return true; }