You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Entries: Should directory be defined as a special type of file? #234
The spec defines file and directory as sibling concepts. A file has binary data and a name. A directory has a name and an ordered list of members, each a file or a directory.
Should directory instead be defined as a special type of file, so that minimal changes are necessary in HTML to describe directory selections made with webkitdirectory and DataTransferItem.webkitGetAsEntry()?
changed the title [-]Should `directory` be defined as a special type of `file`?[/-][+]Entries: Should `directory` be defined as a special type of `file`?[/+]on Nov 20, 2026
That is what we do in https://fs.spec.whatwg.org/ and so it probably makes sense. But directory selections end up appearing as file selections to HTML, I think. Unless you use an API other than <input type=file>.files perhaps.
Activity
[-]Should `directory` be defined as a special type of `file`?[/-][+]Entries: Should `directory` be defined as a special type of `file`?[/+]Link directory-as-file-type issue to w3c#234
annevk commentedon Nov 23, 2026
That is what we do in https://fs.spec.whatwg.org/ and so it probably makes sense. But directory selections end up appearing as file selections to HTML, I think. Unless you use an API other than
<input type=file>.filesperhaps.