Re: [w3c/FileAPI] Fold File and Directory Entries API into File API (PR #222)

annevk left a comment (w3c/FileAPI#222)

<details>
<summary>AI feedback</summary>

Reviewed at cb152dc. I pushed [3fe0427](https://github.com/w3c/FileAPI/pull/222/commits/3fe0427110ca9cfdaee6639dc638415f5dfeb9ff) with fixes for problems the port introduced:

- It restores the ECMA-262 `Promise` anchor. Since 7d670db, `[=Promises=]` has been resolving to Web Smart Card.
- It fixes the `webkitdirectory` link error.
- It drops the explicit `dfn-webkitRelativePath` ID, so the default `dom-file-webkitrelativepath` matches the WICG anchor.
- It points the notes at [[ENTRIES-API]] rather than [[HTML]] for the members HTML doesn't define yet.
- It restores the meaning of the upstream task source issue.

With it, Bikeshed (via the W3C spec generator) reports no warnings beyond those already on main.

I filed the problems that predate the port separately, so they don't hold up the move: #237 (relative path of a `File`), #238 (alignment with the File System Standard), #239 (algorithm gaps), and #240 (editorial).

**Suggestions**

- The WICG draft exported none of its concepts, but the port exports most of them, and several collide with other specifications:
  - [_file entry_ and _directory entry_](https://github.com/w3c/FileAPI/blob/3fe0427110ca9cfdaee6639dc638415f5dfeb9ff/index.bs#L336) are also exported at root scope by whatwg/fs, so for-less links to them, such as those in File System Access, become ambiguous.
  - [_root directory_](https://github.com/w3c/FileAPI/blob/3fe0427110ca9cfdaee6639dc638415f5dfeb9ff/index.bs#L305) collides with EPUB 3.3, and [_parent_](https://github.com/w3c/FileAPI/blob/3fe0427110ca9cfdaee6639dc638415f5dfeb9ff/index.bs#L308) with ARIA.

  Consider not exporting these for the move, as was done for _name_ and the path terms in 307c4bf. #238 covers aligning with File System.
- Once this lands, `FileSystemEntry` and friends are defined in two specifications. webref will flag the duplicate IDL, and WPT's `interfaces/entries-api.idl` will overlap with `interfaces/FileAPI.idl`. Consider a companion WICG/entries-api PR that removes the moved parts and points here. BCD's `spec_url`s will need updating too. For the tests checkbox, the existing WPT `entries-api/` tests can be linked.

</details>


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/pull/222#issuecomment-7100714911
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/FileAPI/pull/222/c7100714911@github.com>

Received on Monday, 23 November 2026 12:15:08 UTC