To answer my own question, CopyFileHook fortunately does simply nothing in this case.
At least it does not throw an error because my workflow runs fine in the local environment where it uses symbolic links from “workDir” to the input files and writes to the final destination through a symbolic “rootfs” directory link. > On 30 Apr 2015, at 16:50, Andreas Schuh <[email protected]> wrote: > > Hi, > > I don’t really know where to find the implementation of the “from.copy(to)” > used within the CopyFileHook to answer this question. What I have is an > output file which is possibly written to a shared network drive location via > a symbolic link resource from the task “workDir” to the shared network drive > location. If it is a symbolic link, the output file would directly be written > to its final destination. Otherwise, I would need to copy it from “workDir” > using a CopyFileHook. > > I was wondering now if I can still in either case just add a CopyFileHook > which should be a NOP (i.e., do nothing) if the source and destination point > to the same actual file. The question is if CopyFileHook will skip the copy > silently or instead throw an error in that case? > > Andreas _______________________________________________ OpenMOLE-users mailing list [email protected] http://fedex.iscpif.fr/mailman/listinfo/openmole-users
