recursive directories also apply to remote_directory