When I run this script it deletes the files that have bee uploaded in the remote server, not the files that were copied from local drive, which should be the correct ones to be deleted.
# Retrieve current date and time
PRINT("Current date and time is "
# Substract two days (in seconds) from the current date,
# assign the result to another variable
PRINT("two days ago was "
PRINT("Every file older than this will be uploaded to the FTP server")
# Request the remote file list
# For each file in the current local directory
# check if it is older than two days. If so upload it