• 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: Best practice for creating a temporary file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best practice for creating a temporary file


  • Subject: Re: Best practice for creating a temporary file
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 02 Sep 2014 12:45:00 -0500

On Tue, Sep 2, 2014, at 11:47 AM, Jens Alfke wrote:
>
> It looks as though there _is_ a per-volume temporary-items directory,
> because on my non-boot partition I see a top-level invisible directory
> called ".TemporaryItems" with a subfolder for each user-ID. But how do I
> find it programmatically?

.TemporaryItems doesn't get cleaned up automatically AFAIK, so I don't
think you'll gain anything by trying to use it.

If you want to hide the folder, I'd try setting its hidden flag via
chflags(2).

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Best practice for creating a temporary file
      • From: Jens Alfke <email@hidden>
References: 
 >Best practice for creating a temporary file (From: Jens Alfke <email@hidden>)

  • Prev by Date: Best practice for creating a temporary file
  • Next by Date: Re: Best practice for creating a temporary file
  • Previous by thread: Best practice for creating a temporary file
  • Next by thread: Re: Best practice for creating a temporary file
  • Index(es):
    • Date
    • Thread