in reply to Re^2: Directory comparisons
in thread Directory comparisons

but I'm not sure the best way to check that files here have not already been transferred

And by transferred here you mean that file was retrieved to local directory, copied to the third directory, and then removed by some other process, is it? In this case yes, you need to keep log of files which were successfully transferred (or rather just list of files that were copied to the third directory).

Replies are listed 'Best First'.
Re^4: Directory comparisons
by joeymac (Acolyte) on Dec 20, 2011 at 15:40 UTC

    Yes, sorry for the vagueness. That is what I mean by transferred. So the log file(s) should be something like a "dump" of the array contents (directory listing). Then read back in this log file, maybe splitting contents by filename and comparing to the directory list of things to be retrieved. And if it is in the log file, don't transfer it (again). Sound right?