Automatically upload every files in a given directory to an FTP server keeping file hierarchy. If the upload is successful, the files and directories are removed.