def is_file(self, follow_symlinks=True):
        """
        Return True if this entry is a file or a symbolic link pointing to a
        file; return False if the entry is or points to a directory or other
        non-file entry, or if it doesn’t exist anymore.

        The result is cached on the os.DirEntry object.

        Args:
            follow_symlinks (bool): Follow symlinks.
                Not supported on cloud storage objects.

        Returns:
            bool: True if directory exists.
        """
        return self._system.isfile(
            path=self._path, client_kwargs=self._client_kwargs)
Return True if this entry is a file or a symbolic link pointing to a
        file; return False if the entry is or points to a directory or other
        non-file entry, or if it doesn’t exist anymore.

        The result is cached on the os.DirEntry object.

        Args:
            follow_symlinks (bool): Follow symlinks.
                Not supported on cloud storage objects.

        Returns:
            bool: True if directory exists.