Austin Sullivan
Austin Sullivan
Given that we've already shipped by defaulting to index 0, I don't think we should change that default. Unlike the change to all-sync SyncAccessHandles, which is technically not backwards-compatible but...
> The text for truncate() Are you talking about the algorithm? (https://fs.spec.whatwg.org/#:~:text=The%20truncate(size,Return%20result) If so, the same issue (of not updating the cursor) also applies to `write()`
> There was a request for symbolic links support (creating & reading links) in [WICG/file-system-access#377](https://github.com/WICG/file-system-access/issues/377), but it was closed as being risky to OPFS. I'd like to re-open this request...
#73 would fix this for `removeEntry()`
I agree this is useful! This idea has extensive prior discussion at https://github.com/WICG/file-system-access/issues/72, though that discussion is focused primarily on watching the local file system, while I believe this capability...
Given the following code: ```javascript let root = await navigator.storage.getDirectory(); let fileHandle = await root.getFileHandle('image.png', { create: true }); let file = await fileHandle.getFile(); console.log(file.type); ``` The latest stable versions...
FWIW it looks like [drag-and-drop for files](https://html.spec.whatwg.org/multipage/dnd.html#drag-and-drop-processing-model:the-drag-data-item-type-string-2) uses `"application/octet-stream"` as a default value The only restriction seems to be that [it must be ASCII lowercase](https://html.spec.whatwg.org/multipage/dnd.html#the-drag-data-item-type-string), but otherwise is [just refers...
> I don't think the actual MIME type is inferred at the moment for File objects, except when they come from disk. Can you give a counter example? > ```js...
Yeah I agree the we should be more specific about the restrictions for the OPFS, and they should probably be more lax than the restrictions we have for local files....
Looking at this again, there's two distinct conversations about allowed characters: - Should `\` be blocked on just Windows, or everywhere? - What other characters, if any, should be blocked?...