WICG / file-system-access

Expose the file system on the user’s device, so Web apps can interoperate with the user’s native applications.
https://wicg.github.io/file-system-access/
Other
654 stars 65 forks source link

Error: Failed to create swap file. #438

Closed kyleplo closed 7 months ago

kyleplo commented 7 months ago

Upon calling createWritable on a FileSystemFileHandle, I am getting the following error message (in Chrome):

DOMException: Failed to execute 'createWritable' on 'FileSystemFileHandle': Failed to create swap file.

I don't see any error message of this sort documented in this spec, or anywhere on the internet for that matter. When this error occurs, the file in question gets completely cleared as well.

This error only seems to occur when attempting to modify specific files. In my case it is happening when writing to a file with the same name as the containing folder (which is required for what I am trying to do).

tomayac commented 7 months ago

This sounds more like a Chrome bug than a spec issue. Could you please file a new Chrome bug and paste the URL here? Thank you!

tomayac commented 7 months ago

If you can, please add a minimal reproduction case that shows the issue. A platform like Glitch works great for that.

a-sully commented 7 months ago

+1 to what @tomayac said :)

kyleplo commented 7 months ago

Thanks Report URL: https://bugs.chromium.org/p/chromium/issues/detail?id=1523851 Reproduction Case: https://swanky-rounded-clave.glitch.me/

tomayac commented 7 months ago

<3 Thank you very much. Reproduces here on my machine, too. Responded on the bug.