in reply to Append new files only.
Are you aware that you can use tar? It already has the ability to only append newer files to the archive. It won't be the same file format, but it might be able to help you out.
Anyway, for your coding problem, it looks like you just need to chomp your lines as you read them, otherwise the end-of-line at the end of the filename will cause you a mismatch: After all "foo" doesn't equal "foo\n", which is what it looks like your program is doing.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Append new files only.
by c4jjm (Initiate) on Nov 10, 2011 at 00:56 UTC | |
by roboticus (Chancellor) on Nov 10, 2011 at 01:19 UTC |