David Kewley | 28 May 2004 21:41
Picon
Picon
Favicon

Re: copy diff dir1 dir2

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)


Gmane