[futurebasic] Re: [FB] Rename a file using CFURLRef

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2013 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Sat, 29 Jun 2013 09:56:38 -0700
Ken wrote:
> I’d be curious to see what happens when you try to rename a file without an extension.

fn ConsolePrintCFType prints from my posted code confirm a file named "file with no extension" to "A new name" works.

oldURL contents before rename:
file://localhost/Users/brians/Desktop/file%20with%20no%20extension

tempURL contents after fn CFURLCreateCopyDeletingLastPathComponent:
file://localhost/Users/brians/Desktop/

newURL contents after fn CFURLCreateCopyAppendingPathComponent
file://localhost/Users/brians/Desktop/A%20new%20name

Since the code was written quickly, issues are likely. Please let me know and I’ll try to fix them.


Brian S.