ensure => directory is not valid when using recurse to transfer a folder