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

RE: File API: Directories and System

From: David Rogers <david.rogers@omtp.org>
Date: Wed, 9 Dec 2009 22:35:25 -0000
Message-ID: <4C83800CE03F754ABA6BA928A6D94A0601F0C360@exch-be14.exchange.local>
To: "Tran, Dzung D" <dzung.d.tran@intel.com>, "Robin Berjon" <robin@robineko.com>, <public-device-apis@w3.org>
Hi Dzung and Robin,

Yes that's correct - for example if a memory card was inserted / removed
you could generate a mount / unmount event.

Cheers,


David.

-----Original Message-----
From: public-device-apis-request@w3.org
[mailto:public-device-apis-request@w3.org] On Behalf Of Tran, Dzung D
Sent: 09 December 2009 21:35
To: Robin Berjon; public-device-apis@w3.org
Subject: RE: File API: Directories and System

I think the intent for being notified of mounts is for the use cases of
external drives, such as thumb drive, SD card, camera w/ storage that is
plugged/unplugged from your device. 

Thanks
Dzung Tran,

-----Original Message-----
From: public-device-apis-request@w3.org
[mailto:public-device-apis-request@w3.org] On Behalf Of Robin Berjon
Sent: Wednesday, December 09, 2009 10:19 AM
To: public-device-apis@w3.org
Subject: File API: Directories and System

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 22:35:58 GMT

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