remote_directory fails trying to purge a non-empty directory
remote_directory fails if "purge" is set to true and the destination directory is not empty. e.g.
trying to copy to
fails stating "B" is not empty. The failure is primarily because Directory.rm does not force delete.
FileUtils.rm_rf may be a better bet.