def is_dir(self, remote_path, bundle_id=None):
        """
        Check if the specified path on the iOS device is a directory.

        Args:
            remote_path (str): The remote path to check.
            bundle_id (str, optional): The bundle ID of the app. Defaults to None.

        Returns:
            bool: True if the path is a directory, False otherwise.

        Exapmles:

            >>> dev = connect_device("iOS:///http+usbmux://udid")
            >>> print(dev.is_dir("/DCIM/"))
            True
            >>> print(dev.is_dir("/Documents/test.key", "com.apple.Keynote"))
            False

        """
        if not self.is_local_device:
            raise LocalDeviceError()
        return TIDevice.is_dir(self.udid, remote_path, bundle_id=bundle_id)

        Check if the specified path on the iOS device is a directory.

        Args:
            remote_path (str): The remote path to check.
            bundle_id (str, optional): The bundle ID of the app. Defaults to None.

        Returns:
            bool: True if the path is a directory, False otherwise.

        Exapmles:

            >>> dev = connect_device("iOS:///http+usbmux://udid")
            >>> print(dev.is_dir("/DCIM/"))
            True
            >>> print(dev.is_dir("/Documents/test.key", "com.apple.Keynote"))
            False

        
airtest/core/ios/ios.py