W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2009

File API: Directories and System

From: Robin Berjon <robin@robineko.com>
Date: Wed, 9 Dec 2009 19:18:53 +0100
Message-Id: <07B62486-92E7-47BB-83F6-E15B0AF2543B@robineko.com>
To: public-device-apis@w3.org
Hi all,

as discussed on the call, please find in CVS a rough proposal for the Directories and System parts of the File API:

  http://dev.w3.org/2009/dap/file-system/file-dir-sys.html

It is based on the functionality found in BONDI's file system API, with changes to integrate with FileReader and FileWriter (soon to be updated), and naming that attempts to be more vernacular. The thing that's missing from BONDI is all that relates to mounting and being notified of mounts. I'm still fuzzy about the former (can someone clarify the intended usage?), while the latter is something that's flagged for addition.

There are two entry points. One is through navigator.device.fileSystems(), which upon success lists all available FSs. Naturally that only expected to be exposed in trusted environments.

The other is a localFS attribute of window that is intended to work in the same manner as localStorage and friends. I expect that this is as far as browsers may be interested in going. I can think of some useful applications for it.

Hopefully this is a first step in clarifying how we can integrate all the components in the File API family of specifications, to make it a happy family and all, so that we can have our security cake in browsers and eat it in widgets.

Comments, rants, etc. much appreciated.

--
Robin Berjon
  robineko  hired gun, higher standards
  http://robineko.com/
Received on Wednesday, 9 December 2009 18:19:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:03 GMT