Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Finding old copies of files

by afoken (Chancellor)
on Feb 27, 2021 at 15:29 UTC ( [id://11128879]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Finding old copies of files
in thread Finding old copies of files

An MD5 or SHA-256 sum would catch different files of the same size. However, they are computationally intense and in this use case overkill

Calculating the MD5 of a file should not be significantly slower than copying the file on a modern computer.

You could even optimize by delaying the MD5 calculation until you find a second file with same size and base name.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11128879]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-18 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found