public void renameByCopying(String src, String target) throws RolloverFailure { FileUtil fileUtil = new FileUtil(getContext()); fileUtil.copy(src, target); File srcFile = new File(src); if (!srcFile.delete()) { addWarn("Could not delete " + src); } }
public void renameByCopying(String src, String target) throws RolloverFailure { FileUtil fileUtil = new FileUtil(getContext()); fileUtil.copy(src, target); File srcFile = new File(src); if (!srcFile.delete()) { addWarn("Could not delete " + src); } }
public void renameByCopying(String src, String target) throws RolloverFailure { FileUtil fileUtil = new FileUtil(getContext()); fileUtil.copy(src, target); File srcFile = new File(src); if (!srcFile.delete()) { addWarn("Could not delete " + src); } }
public void renameByCopying(String src, String target) throws RolloverFailure { FileUtil fileUtil = new FileUtil(getContext()); fileUtil.copy(src, target); File srcFile = new File(src); if (!srcFile.delete()) { addWarn("Could not delete " + src); } }
public void renameByCopying(String src, String target) throws RolloverFailure { FileUtil fileUtil = new FileUtil(getContext()); fileUtil.copy(src, target); File srcFile = new File(src); if (!srcFile.delete()) { addWarn("Could not delete " + src); } }
public void renameByCopying(String src, String target) throws RolloverFailure { FileUtil fileUtil = new FileUtil(getContext()); fileUtil.copy(src, target); File srcFile = new File(src); if (!srcFile.delete()) { addWarn("Could not delete " + src); } }
@Test public void basicCopyingWorks() throws IOException { String dir = CoreTestConstants.OUTPUT_DIR_PREFIX+"/fu"+diff; File dirFile = new File(dir); dirFile.mkdir(); String src = CoreTestConstants.TEST_INPUT_PREFIX + "compress1.copy"; String target = CoreTestConstants.OUTPUT_DIR_PREFIX+"/fu"+diff+"/copyingWorks.txt"; fileUtil.copy(src, target); Compare.compare(src, target); }