[Unison-hackers] Does copyprog option do not work for local files?
Alan Schmitt
alan.schmitt at polytechnique.org
Sat Mar 28 05:16:59 EDT 2009
On 28 mars 09, at 06:44, netawater wrote:
> I try use unison to synchronize my files with copyprog option, I
> have set copythreshold = 0, but It seems unison does not call my
> copy program.
>
> I have studied the copy.ml, and found these expressions in file
> function
>
> match rootFrom, rootTo with
> (Common.Local, fspathFrom), (Common.Local, realFspathTo) ->
> localFile
> fspathFrom pathFrom fspathTo pathTo realPathTo
> update desc (Osx.ressLength ress) (Some id);
> Lwt.return ()
>
> It means if it found there are local files, it will call localFile
> function
> so that copyprog is ignored.
Yes, it is correct. To be precise, copyprog is called:
- when one file is remote
- when the remote file is missing (i.e. it's a file creation, not a
file modification)
- when the remote file is bigger than the threshold.
Alan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.seas.upenn.edu/pipermail/unison-hackers/attachments/20090328/0c063d0b/PGP.sig
More information about the Unison-hackers
mailing list