Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'revised version that handles special filenames better' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
revised version that handles special filenames better
Authored by: hayne on Mar 02, '06 01:38:40PM
Someone pointed out to me that the script failed (it hangs) if one of the filenames that it encounters starts with "-" followed by some whitespace - e.g. a filename "- foo". The problem was in the calcMd5 function. It tried to protect against strange filenames by using a well-known trick - but it turns out that trick fails when faced with a filename like "- foo".

I have modifed the version of the script that is in the forums thread to fix this problem.

[ Reply to This | # ]