The test in _get_mapper failed when self.fileName is a directory but this is now fixed