correct size & Date in package
Posted: Wed Jun 13, 2007 7:49 pm
I know the package thing is complicated, but slowly I start to comprehend how it works. Well, there's a thing which I found a little confusing.
Example:
I have a file named test.pdf on computer A and computer B. On computer B it's an old version: 19-12-2006, 1030 Byte. On computer A it's a newer version: 10-06-2007, 2000 Byte.
1. Create package on computer A
-> in list.txt I will have the entry: 2000 10-06-2007 00:00:00 0 0 0 test.pdf
2. I take the package to computer B and synchronize it
-> it will produce half-green arrows, because the new file is not in the package, and tag it to be copied from computer A
-> in list.txt I will have: 2000 10-06-2007 00:00:00 2 0 0 test.pdf
3. I again take the package to computer A, and now it suggests to copy test.pdf from computer A to the package (which is correct).
The problem: it did not change the date, nor the filesize in the package, so that it looks as if I would overwrite identical files:
(source = package) (target = computer A)
10-06-2007 [2.000] << 10-06-2007 [2.000]
This can be kind of confusing.
The reason: in list.txt, it only set's a 2 0 0 to tag the file to be copied from computer A, but it does not change the date / size
Possible solution:
When you set a 2 0 0, also replace the date / size (from computer A) in list.txt by that of computer B.
When you synchronize this package again on computer A, you should get:
(source = package) (target = computer A)
19-12-2006, [1.030] << 10-06-2007 [2.000]
which would be more logical and less confusing.
Thank you and best regards
- spitfire
Example:
I have a file named test.pdf on computer A and computer B. On computer B it's an old version: 19-12-2006, 1030 Byte. On computer A it's a newer version: 10-06-2007, 2000 Byte.
1. Create package on computer A
-> in list.txt I will have the entry: 2000 10-06-2007 00:00:00 0 0 0 test.pdf
2. I take the package to computer B and synchronize it
-> it will produce half-green arrows, because the new file is not in the package, and tag it to be copied from computer A
-> in list.txt I will have: 2000 10-06-2007 00:00:00 2 0 0 test.pdf
3. I again take the package to computer A, and now it suggests to copy test.pdf from computer A to the package (which is correct).
The problem: it did not change the date, nor the filesize in the package, so that it looks as if I would overwrite identical files:
(source = package) (target = computer A)
10-06-2007 [2.000] << 10-06-2007 [2.000]
This can be kind of confusing.
The reason: in list.txt, it only set's a 2 0 0 to tag the file to be copied from computer A, but it does not change the date / size
Possible solution:
When you set a 2 0 0, also replace the date / size (from computer A) in list.txt by that of computer B.
When you synchronize this package again on computer A, you should get:
(source = package) (target = computer A)
19-12-2006, [1.030] << 10-06-2007 [2.000]
which would be more logical and less confusing.
Thank you and best regards
- spitfire