W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

[File API: Directories and System] callbacks or events

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Fri, 11 Feb 2011 17:43:09 +0200
Message-ID: <4D55590D.10306@helsinki.fi>
To: public-webapps@w3.org
Hi all,

the current "File API: Directories and System" seems to use
callbacks and not events, yet other
File APIs (the ones for read and write) use events.
That is quite major inconsistency in the APIs.
IIRC there was already some discussion about which approach to use
when the API for read was designed and it was decided that events should 
be used.

Using events would make it rather easy to track moves, copies etc, of a
file. Just set the event listeners when the entry is first time
accessed, and then you get notified whenever the file is moved etc.

-Olli
Received on Friday, 11 February 2011 15:43:41 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:43 GMT