Read List of Files from FTP, Compare to DB and Rename

Closed - This job posting has been filled and work has been completed.

Job Description

I have a folder of around 6000 files all in .rar format in an ftp server. I have a database that have the names of the files with similar names. I need a script that scans the db and renames the files in the ftp. Note that the file names may be similar. But we can talk more about the logic at a later time.

I need another script that I can run that updates file size of the file listed in the db with the new filesize.