W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2013

Re: Polished FileSystem API proposal

From: Jan Varga <jan.varga@gmail.com>
Date: Mon, 22 Jul 2013 20:18:40 +0200
Message-ID: <CAB1sDKyWctjPgSpZtaeOdQx083P8aMyydv3u-V7NX3AJn5n43A@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Webapps WG <public-webapps@w3.org>
On Sat, Jul 13, 2013 at 2:31 AM, Jonas Sicking <jonas@sicking.cc> wrote:

> Hi All,
>
> Yesterday a few of us at mozilla went through the FileSystem API
> proposal we previously sent [1] and tightened it up.
>
>
It was also pointed out that we should address multi-file locking too.
One of the options is to make openRead() and openWrite() take a sequence.

interface Directory {
  Promise<FileHandle> openRead((DOMString or File) file);
  Promise<FileHandleWritable> openWrite((DOMString or File) file,
OpenWriteOptions options);
  Promise<sequence<FileHandle>> openRead(sequence<(DOMString or File)>
files);
  Promise<sequence<FileHandleWritable>> openWrite(sequence<(DOMString or
File)> files, OpenWriteOptions options);
}

So, this works with the current proposal, Jonas has a more complex solution
that probably requires bigger changes in the proposed file system API.
I'll let Jonas to describe it.

Jan
Received on Monday, 22 July 2013 18:19:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:12 UTC