- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 23 Nov 2026 04:13:56 -0800
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/FileAPI/issues/239@github.com>
annevk created an issue (w3c/FileAPI#239) The algorithms carried over from the File and Directory Entries API in #222 have several gaps: - _getParent()_, _getFile()_, and _getDirectory()_ create a new entry with a name and full path, but no root. Later operations on the resulting object evaluate paths against that root. - _readEntries()_ passes the directory's members (files and directories) to `successCallback`, but the callback expects `FileSystemEntry` objects. The steps need to create `FileSystemFileEntry` and `FileSystemDirectoryEntry` objects, each with a name, full path, and root. - Once the reader is done, _readEntries()_ invokes `successCallback` "with an empty list", which invokes it with no arguments. It needs to pass an empty list as the argument: « « » ». - _getParent()_ invokes the optional `successCallback`, and _readEntries()_ invokes the optional `errorCallback` when a read is already in progress, without checking whether they were given. - The `filesystem` getter returns the _file system_ concept rather than a `FileSystem` object. The `FileSystem` `root` getter associates a `FileSystemDirectoryEntry` with a root directory rather than with an entry. Neither defines whether repeated gets return the same object. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/FileAPI/issues/239 You are receiving this because you are subscribed to this thread. Message ID: <w3c/FileAPI/issues/239@github.com>
Received on Monday, 23 November 2026 12:14:01 UTC