mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 18:41:10 +00:00
Pass write(true)
when creating a file in RealFs
This commit is contained in:
parent
a19735c05f
commit
03812a6cdc
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue