code: def ends_with_path_separator(self, file_path):
          
          if is_int_type(file_path):
              return False
          file_path = make_string_path(file_path)
          return (file_path and
                  file_path not in (self.path_separator,
                                    self.alternative_path_separator) and
                  (file_path.endswith(self._path_separator(file_path)) or
                   self.alternative_path_separator is not None and
                   file_path.endswith(
                       self._alternative_path_separator(file_path))))
docs: Return True if ``file_path`` ends with a valid path separator.