Re: cp creates directory with different permissions -- then reverts them
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Nov 1, 2006, at 2:09 PM, Jerry Krinock wrote: on 06/10/31 5:40, Quinn at eskimo1@apple.com wrote: One approach I've seen for this is to do the scribbling (writing, copying, changing of permissions, etc.) somewhere hidden on the same file system and then when that's finished move the item to the Finder-visible location. None of these seem like showstoppers to me... = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... At 13:50 -0500 30/10/06, Michael Cashwell wrote: In general, this is the best approach. This also looks very easy: Since items with names beginning in the dot "." are hidden, simply prefix the item's name with a "." while you are scribbling, and then when you're done scribbling, rename it, removing the "." prefix. Should that do it, or am I oversimplifying? The only arguments against this approach that I can think of at this hour are: - some filesystems (but not many, to be honest) can't deal with any sort of lengthy filename starting with a dot. - from a robustness perspective, having a single place where you write temp files means that if your app crashes and restarts, you can reap stray temporary items on a per-volume basis, rather than leaving invisible turds lying all over the volume - other systems (Windows) will see these files if the directory is exported This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Smith