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

FileSystem API: Adding file size field to Metadata?

From: Kinuko Yasuda <kinuko@chromium.org>
Date: Tue, 28 Feb 2012 10:47:56 -0800
Message-ID: <CAMWgRNaNT55iSReuiQxXouVNBAZi5q41QQ08gZ8RAMcJaDUD5A@mail.gmail.com>
To: Web Applications Working Group WG <public-webapps@w3.org>, Eric Uhrhane <ericu@chromium.org>

While looking at the FileSystem API draft I noticed that we only expose
'modificationTime' in 'Metadata' object.  Since FileEntry itself doesn't
have 'size' field unlike File object maybe it's reasonable to add 'size'
field to Metadata?


Without adding this we can indirectly get the file size by creating 'File'
object via FileEntry.file() method and accessing File.size, but when an app
wants to display the modificationTime and file size at once (and it sounds
very plausible use case) the app needs to call two different async
methods-- which doesn't sound very nice.  WDYT?

Received on Tuesday, 28 February 2012 18:48:51 UTC

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