Re: Changing file & directory names
Re: Changing file & directory names
- Subject: Re: Changing file & directory names
- From: Dean Snyder <email@hidden>
- Date: Sat, 01 Jul 2006 21:39:52 -0400
I wrote at 3:57 PM on Saturday, July 1, 2006:
>So you're saying that there is no new file creation going on with
>NSFileManager movePath? Then why do both the created and modified dates
>of the just "moved" file equal the time of "moving" and not, for
>example, the "real" created time?
I need to correct this.
If I change the contents of the file and save it (using NSTextView
writeRTFDToFile), but do not rename/move the file, then both the
creation date and the modification date are changed to reflect the time
the file was saved. That is clearly wrong behavior - only the
modification date should be changed.
If I rename/move the file (using NSFileManager movePath) without
altering the contents of the file, the creation and modification date
remain unchanged.
Dean A. Snyder
Manager, Digital Hammurabi Project
Computer Science Department, Whiting School of Engineering
218C New Engineering Building, 3400 North Charles Street
Johns Hopkins University
Baltimore, Maryland, USA 21218
cell: 717 817-4897
www.jhu.edu/digitalhammurabi/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden