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

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

From: Robert Covington <artlythere@...>
Date: Sun, 30 Jun 2013 01:28:22 -0400
On Jun 29, 2013, at 12:56 PM, Brian S <fblistserve@...> wrote:

> 
> 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. 

Mr. Brian, those links are local to your CPU.

rc