Re: file-system-api: filename restrictions

On Wed, Jan 12, 2011 at 6:37 PM, Charles Pritchard <chuck@jumis.com> wrote:
> Those very-short length limitations are really frustrating.

More so for other languages, too; 255 bytes of UTF-8 is only 85
codepoints of CJK--still a fairly long filename, but not unheard of.
But, it seems long enough for sandboxed access, as long as the
restriction can be lifted for non-sandboxed "mountpoint" access later
on.

> The <input type="file" webkitdirectory> experiment has opened up some room
> for the idea of mount points. Perhaps, further exploration there would be
> helpful.

I think that just returns a FileList, as if the user had manually
selected each file in the directory, which is a fairly lightweight
feature.  A "mountpoint" interface would presumably return a
FileSystem object (among other details, like adding FileSystem to the
structured clone algorithm, and a way to request a FileSystemSync
object from a FileSystem object).

-- 
Glenn Maynard

Received on Thursday, 13 January 2011 01:38:16 UTC