Sorry... I looked around for a script like this one but I didn't found anything. That's why I bump a thread 6 months old.
Sorry again and thanks for your help.
P.S.: I don't know why, I was searching with the keyword "ftp", that's why I didn't got results.