• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cp creates directory with different permissions -- then reverts them
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp creates directory with different permissions -- then reverts them


  • Subject: Re: cp creates directory with different permissions -- then reverts them
  • From: Michael Smith <email@hidden>
  • Date: Thu, 2 Nov 2006 02:56:42 -0800


On Nov 1, 2006, at 2:09 PM, Jerry Krinock wrote:

on 06/10/31 5:40, Quinn at email@hidden wrote:

At 13:50 -0500 30/10/06, Michael Cashwell 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.

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

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: cp creates directory with different permissions -- then reverts them (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Getting the current PID inside kext?
  • Next by Date: Re: cp creates directory with different permissions -- then reverts them
  • Previous by thread: Re: cp creates directory with different permissions -- then reverts them
  • Next by thread: Re: cp creates directory with different permissions -- then reverts them
  • Index(es):
    • Date
    • Thread