Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rename file name revisted



On Jun 21, 2007, at 10:37:12, Angelo Chen wrote:

I have a FSRef ref, I use :
CFURLRef url = CFURLCreateFromFSRef(
kCFAllocatorDefault, &ref );
result is : Macitosh:hd:test.mov$

I created a new name from that: Macitosh:hd:test.mov

then rename to it:
	err = FSRenameUnicode(&ref, newNameLen,  newName,
kTextEncodingUnknown,NULL);

err always -37(bdNameErr)

Because Macitosh:hd:test.mov is not a file name, it's a full path specifier. The new name should be simply "test.mov".


_________________________________________________________
Steve Mills                              Me: 952-401-6255
Senior Software Architect                         MultiAd
email@hidden                       www.multi-ad.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >rename file name revisted (From: Angelo Chen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.