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

FileSystem API - overwrite flag for copy/move?

From: Kinuko Yasuda <kinuko@chromium.org>
Date: Mon, 30 Aug 2010 21:27:02 -0700
Message-ID: <AANLkTimjnBbRF_-n=_+qwZO9uJ_qPHkoi9nwAo3RX1+c@mail.gmail.com>
To: Eric Uhrhane <ericu@google.com>, Web Applications Working Group WG <public-webapps@w3.org>

I have a question about Entry.moveTo/copyTo behavior defined in
the File API: Directories and System [1].

Currently the API doesn't specify how Entry.moveTo() and copyTo() should
when a source entry is a file and there's *already* a file at the
destination path.
Should UAs overwrite the existing file at the destination path or not?
Or maybe we should add an 'overwrite' flag to indicate if the script wants
to overwrite an existing file or not?

Similarly I wondered if we'd want to have a 'recursive' flag for
I think for directories we can simply assume that the user wants to
them recursively, but it might be good to add some notion about that in the


[1] http://dev.w3.org/2009/dap/file-system/file-dir-sys.html
Received on Tuesday, 31 August 2010 04:27:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:11 UTC