Menu

#46 -O compare

open
nobody
None
5
2002-06-25
2002-06-25
No

Like the default overwrite option ("no"), it will avoid
overwriting files, adding the message ID to the filename
to make it unique.
But first it compares the new file to the old file. If the
contents are
byte-for-byte identical, it doesn't bother to create the
new file.

Note this doesn't save any bandwidth, it purely avoids
the inconvenience of
having to clean up a lot of duplicate files. I created this
patch mostly to
deal with the annoyance that I eventually fixed with my
previous patch.
However, it is still useful to deal with reposts.

This patch adds a requirement of File::Compare. That
module seems to have
been in the core Perl distribution for a long time now, so
I don't think
that's a problem.

(Adam Rice)

Discussion

  • James E. Pace

    James E. Pace - 2002-09-04

    Logged In: YES
    user_id=175353

    I would really like this feature! Thanks.

     
  • Nobody/Anonymous

    Logged In: NO

    My script does a MD5 on each file and if it's a match, it
    creates a symbolic link to the matching file. It's done after
    the download but the advantage is that it also works even
    with files with different names in different groups. I keep all
    files in a mysql database and the MD5 value is stored there
    so it only needs to do a MD5 once per file.

     

Log in to post a comment.

MongoDB Logo MongoDB