From 03812a6cdc5a79d72688851e2dbaeb17ff5267d1 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 14 Feb 2022 09:11:46 +0100 Subject: [PATCH] Pass `write(true)` when creating a file in `RealFs` --- crates/project/src/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/project/src/fs.rs b/crates/project/src/fs.rs index 5157d72042..7ba2076fcb 100644 --- a/crates/project/src/fs.rs +++ b/crates/project/src/fs.rs @@ -73,7 +73,7 @@ impl Fs for RealFs { async fn create_file(&self, path: &Path, options: CreateOptions) -> Result<()> { let mut open_options = smol::fs::OpenOptions::new(); - open_options.create(true); + open_options.write(true).create(true); if options.overwrite { open_options.truncate(true); } else if !options.ignore_if_exists {