We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
derived from #5593
Currently, SwiftWasm doesn't support the following code for wasm32-unknown-wasi:
wasm32-unknown-wasi
import Foundation Data().write(to: URL(filePath: "hoge"), options: .atomic)
It's because the option .atomic requires creating a temporary file, and swift-foundation doesn't support it if os(WASI).
.atomic
os(WASI)
One idea: #5593 (comment)
How about allowing atomic file writing when TMPDIR environment variable is explicitly defined?
The text was updated successfully, but these errors were encountered:
FileManager.default.createFile()
No branches or pull requests
derived from #5593
Description
Currently, SwiftWasm doesn't support the following code for
wasm32-unknown-wasi
:It's because the option
.atomic
requires creating a temporary file, and swift-foundation doesn't support it ifos(WASI)
.Ideas
One idea: #5593 (comment)
The text was updated successfully, but these errors were encountered: