Is an atomic-rename possible in Mac VFS/HFS+?
问题 With support for ACLs in Mac OS X, there is a way to declare a file as writeable but non-deletable. This poses a problem with atomic writes, since the current implementation of rename in VFS delete s a pre-existing target. If you have an existing file, which you have write privileges on, it is possible to be unable to atomically write to: Simply attach an ACL that states deny delete and an atomic write (like implemented by various Cocoa APIs — e.g. NSArray's writeToFile:atomically:) will fail