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

Re: File API: Blob and underlying file changes.

From: Chris Prince <cprince@google.com>
Date: Tue, 12 Jan 2010 17:28:27 -0800
Message-ID: <cd580da01001121728pd5fbde9qb17707214ac5dc78@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: arun@mozilla.com, Dmitry Titov <dimich@chromium.org>, Web Applications Working Group WG <public-webapps@w3.org>
> For the record, I'd like to make the read "atomic", such that you can
> never get half a file before a change, and half after. But it likely
> depends on what OSs can enforce here.

I think *enforcing* atomicity is difficult across all OSes.

But implementations can get nearly the same effect by checking the
file's last modification time at the start + end of the API call.  If
it has changed, the read operation can throw an exception.
Received on Wednesday, 13 January 2010 01:29:00 GMT

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