copy file via ftp snippet