• 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: Tracking files the right way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracking files the right way


  • Subject: Re: Tracking files the right way
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 30 Aug 2002 10:14:21 -0500

At 11:16 AM +0200 8/30/02, Malte Tancred wrote:
On fredag, aug 30, 2002, at 02:47 Europe/Stockholm, Chris Hanson wrote:
The correct process for a safe save on a volume that doesn't support FSExchangeObjects is to write the new content to foo~.txt, rename the old file to some temporary name, rename foo~.txt to foo.txt, and rename the temporary name to foo.txt.

Uhm, no, this would trash the new data, ie the last rename of the temporary file (the original content) to foo.txt. :-)

That last part should have read "rename the temporary name to foo~.txt", of course.

-- Chris
-- oops

--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Tracking files the right way (From: Malte Tancred <email@hidden>)

  • Prev by Date: Re: OS display bug in retained windows?
  • Next by Date: Re: Executing A Shell Script...
  • Previous by thread: Re: Tracking files the right way
  • Next by thread: Re: Tracking files the right way
  • Index(es):
    • Date
    • Thread