Say we transferred a file after download to external.
But the name is still in the IDM download list.
How do we prevent duplicate download?
>>58539661
wow, she's hot. What's her name?
I think you may need to be a little more verbose about your problem.
>>58539803
>not knowing sara jean underwood
bruh
>>58539803
She's not even hot, her face is disgusting.
>>58539902
Bobody gives a shit
>>58539661
>internet download manager
Fuck off
>>58539803
I basically want to avoid duplicate download. That is downloading the same file again by mistake.
It's easy if the file is still in the system.
But not sure if you've removed the file from the system. (The name of the file will still be in the list though.)
>>58539912
*Nobody
Say we had a stupid questions thread.
But people still make new threads for stupid questions.
How do we prevent idiots from making new threads?
>>58539961
Stupid Questions Board
>>58539803
her name is maxresdefault
cant you read you autist
>>58539961
>how do we prevent idiots from making new threads
Kinda defeats the purpose of 4chan at that point.
>>58539661
>>58539925
Alongside the file name, I'd store checksums of the file from three different hashing algorithms (say MD5, SHA-256, SHA-512).
Check new downloads for a collision against the smallest checksum, if there is one check the other two hashes for that file. If there are all three hashes matching then it's been downloaded before.
I don't know what the odds are for collisions using three different hashing algorithms but it's almost certainly never going to happen in practice.
>>58542018
It's worth noting that storing the hashes will cost at least 112 bytes, but compared to the file contents this should be pretty reasonable to store. It will add up however if you are storing a lot of small files.
Maybe if the file size is below some threshhold only use two hashes to save space.
>>58539661
I though it was a civ V leader for a few seconds.
>>58539661
>Fake tits
lol, western women are pathetic..
>>58539896
Sara Undermywood
Hot.