code: def exists(self, file_path, check_link=False):
          
          if check_link and self.islink(file_path):
              return True
          file_path = make_string_path(file_path)
          if file_path is None:
              raise TypeError
          if not file_path:
              return False
          if file_path == self.dev_null.name:
              return not self.is_windows_fs
          try:
              if self.is_filepath_ending_with_separator(file_path):
                  return False
              file_path = self.resolve_path(file_path)
          except (IOError, OSError):
              return False
          if file_path == self.root.name:
              return True
  
          path_components = self._path_components(file_path)
          current_dir = self.root
          for component in path_components:
              current_dir = self._directory_content(current_dir, component)[1]
              if not current_dir:
                  return False
          return True
docs: Return true if a path points to an existing file system object.
  
          Args:
              file_path:  The path to examine.
  
          Returns:
              (bool) True if the corresponding object exists.
  
          Raises:
              TypeError: if file_path is None.