[w3c/FileAPI] Entries: align the file and directory model with the File System Standard (Issue #238)

annevk created an issue (w3c/FileAPI#238)

The concepts carried over from the File and Directory Entries API in #222 overlap with the [File System Standard](https://fs.spec.whatwg.org/), but the two use the same names for different layers:

- _file_ (binary data and a name) and _directory_ (a name and members) correspond to File System's [file entry](https://fs.spec.whatwg.org/#file) and [directory entry](https://fs.spec.whatwg.org/#directory).
- _entry_, _file entry_ and _directory entry_ (a name, a full path, and a root) correspond to File System's [file system locator](https://fs.spec.whatwg.org/#file-system-locator), file locator, and directory locator (a path, a kind, and a root).

Ideally both specifications would share a single model, which would also address WICG/entries-api#37. Differences to work through include:

- paths are strings here but lists in File System;
- the root is a root directory here but an opaque string in File System;
- File System's file entries also carry locks and access checks.

Until then, both specifications exporting _file entry_ and _directory entry_ would make cross-specification links to those terms ambiguous.

Related: #234.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/issues/238
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/FileAPI/issues/238@github.com>

Received on Monday, 23 November 2026 12:14:00 UTC