28 May 2004 21:41
Re: copy diff dir1 dir2
David Kewley <kewley <at> gps.caltech.edu>
2004-05-28 19:41:15 GMT
2004-05-28 19:41:15 GMT
OK, I found what works. Using the same example directory tree as in my first email, this does not work: star -copy -diff -vv ./testdir ./testdir2 I believe it fails because "testdir/" is the first part of the path of every file in the create-side, but "testdir2/" is the first part of the path of every file in the diff-side. But the error messages (even with -debug) do not help much, at least not for a person who is not used to dealing with the subtleties of using directory names in this context. This does work: cd testdir2 ; star -copy -diff -vv -C ../testdir . . because now the paths in the two sides have the same first parts. This works also (different directories being compared): cd testdir2 ; star -copy -diff -vv -C ../testdir subdir1 . It's a little weird that in the first example the last two arguments are the same, but not in the second example. This is illustrated further by the fact that the following DOES NOT WORK (only the last argument is changed from the preceding example): cd testdir2 ; star -copy -diff -vv -C ../testdir subdir1 subdir1(Continue reading)
RSS Feed