Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix file rename on FUSE-based filesystems (#51779)
Om Chillure734083576991
diff --git a/crates/fs/src/fs.rs b/crates/fs/src/fs.rsindex d117538ddd9..3efb03b38ce 100644--- a/crates/fs/src/fs.rs+++ b/crates/fs/src/fs.rs@@ -644,9 +644,12 @@ impl Fs for RealFs {code == libc::ENOSYS|| code == libc::ENOTSUP|| code == libc::EOPNOTSUPP+ || code == libc::EINVAL}) =>{// For case when filesystem or kernel does not support atomic no-overwrite rename.+ // EINVAL is returned by FUSE-based filesystems (e.g. NTFS via ntfs-3g)+ // that don't support RENAME_NOREPLACE.true}Err(error) => return Err(error.into()),