23-Apr-2006, 06:43 AM
I am trying to do something which I think should be fairly simple. I just want to create an html listing of a set of files with their name, size, crc, version and date. I have a list of files which is a subset of a much bigger tree. Every time we rebuild, I want to recreate the listing to reflect the new information for that list of files. What I tried to do was create a snapshot with only the files I cared about and then compare that against the new tree. I touched all of the files in the snapshot to have a date that is very old. The comparison is then to do just newer files. This works, but the report also has the old version listed (which makes sense most of the time). Is there a way to suppress the printing of the old file and only list the new one so that instead of
dir1\test.txt 15 c385e96d 4/23/2006 1:29:45 am
15 ffffffff 1/1/1900 12:00:00 am
dir2\test.txt 15 c385e96d 4/23/2006 1:29:45 am
15 ffffffff 1/1/1900 12:00:00 am
it would just list
dir1\test.txt 15 c385e96d 4/23/2006 1:29:45 am
dir2\test.txt 15 c385e96d 4/23/2006 1:29:45 am
I can get closer to the desired behavior by comparing to an empty directory and using orphans but then I would need to pass every file in a filter and that would be pretty nasty since there wouldn't be an easy mask due to how the files are named and spread out.
I guess this just might not be the right tool to do what I want in this case, but thought I would throw this out there in case someone has a more eloquent solution.
dir1\test.txt 15 c385e96d 4/23/2006 1:29:45 am
15 ffffffff 1/1/1900 12:00:00 am
dir2\test.txt 15 c385e96d 4/23/2006 1:29:45 am
15 ffffffff 1/1/1900 12:00:00 am
it would just list
dir1\test.txt 15 c385e96d 4/23/2006 1:29:45 am
dir2\test.txt 15 c385e96d 4/23/2006 1:29:45 am
I can get closer to the desired behavior by comparing to an empty directory and using orphans but then I would need to pass every file in a filter and that would be pretty nasty since there wouldn't be an easy mask due to how the files are named and spread out.
I guess this just might not be the right tool to do what I want in this case, but thought I would throw this out there in case someone has a more eloquent solution.