i already did this to my site, 1 time upload only , and then the file will re-upload when someone view the page, so every files has 2 copies. if the 1 of the file deleted it will automatically re-upload it again,
i checked your script ,nice script by the way,
sorry for my english.