Forgot to implement a switch between ftp and sftp