Factor out +URLHasDirectoryPath: so FTP can handle another URL quirk