Skip to content

Docs: clarify HTTP directory index predicates - #577

Open
Himanshuagrawal4 wants to merge 1 commit into
fsspec:mainfrom
Himanshuagrawal4:PRO/upath-http-20261117
Open

Himanshuagrawal4 wants to merge 1 commit into
fsspec:mainfrom
Himanshuagrawal4:PRO/upath-http-20261117

Conversation

@Himanshuagrawal4

Copy link
Copy Markdown

Description

An HTTP directory index can be a readable HTML document and a directory listing. The usage guide now notes that is_file() and is_dir() can both be true for such a URL. This documents the current behavior without changing it.

Refs #535.

Type of Change

  • Documentation update

Testing

The local HTTP fixture returned true for both predicates in UPath and fsspec for the index. Reading it and traversing to a child both worked. The plain text child returned true only for is_file(). The altered usage guide rendered as Markdown. The full test suite was not run locally.

Checklist

  • Documentation updated

AI assistance: Codex helped draft the note and run the local checks.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant