Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
Use nio for file copying
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Håkansson committed Feb 13, 2013
1 parent fdc708a commit 6a9340f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dotify/src/org/daisy/dotify/system/DuplicatorTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public DuplicatorTask(String name, File copy) {
@Override
public void execute(File input) throws InternalTaskException {
try {
FileUtils.copy(input, copy);
FileUtils.copyFile(input, copy);
} catch (IOException e) {
throw new InternalTaskException("Exception while copying file.", e);
}
Expand Down
2 changes: 1 addition & 1 deletion Dotify/src/org/daisy/dotify/system/TaskRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void writeTempFile(File source, String taskSystemName, String taskName,
fileName += ".tmp";
File f = new File(tempFilesFolder, fileName);
logger.fine("Writing debug file: " + f);
FileUtils.copy(source, f);
FileUtils.copyFile(source, f);
}

private String truncate(String str, int pos) {
Expand Down

0 comments on commit 6a9340f

Please sign in to comment.