Thank you Giampaolo, it works just as I was hoping, =] I tested it on glftpd using python 2.6.1.