Skip to content

Commit

Permalink
sandbox: We have to move all generated outputs, not just regular files.
Browse files Browse the repository at this point in the history
Fix for a part of bug #397.

--
MOS_MIGRATED_REVID=102564902
  • Loading branch information
philwo authored and damienmg committed Sep 8, 2015
1 parent bb89618 commit def7016
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ private void copyOutputs(Collection<? extends ActionInput> outputs) throws IOExc
Path source = sandboxExecRoot.getRelative(output.getExecPathString());
Path target = execRoot.getRelative(output.getExecPathString());
FileSystemUtils.createDirectoryAndParents(target.getParentDirectory());
if (source.isFile()) {
Files.move(new File(source.getPathString()), new File(target.getPathString()));
if (source.isFile() || source.isSymbolicLink()) {
Files.move(source.getPathFile(), target.getPathFile());
}
}
}
Expand Down

0 comments on commit def7016

Please sign in to comment.