Re: Root URL and URLByDeletingLastPathComponent
Re: Root URL and URLByDeletingLastPathComponent
- Subject: Re: Root URL and URLByDeletingLastPathComponent
- From: Charles Srstka <email@hidden>
- Date: Sun, 17 Jul 2016 16:06:38 -0500
> On Jul 17, 2016, at 5:30 AM, Mike Abdullah <email@hidden> wrote:
>
> It might be a mishandling of the two sorts of rot URL. If you try feeding in this URL manually:
>
> file://localhost/ <file:///>
>
> and removing the last component, what do you end up with?
import Foundation
let url = NSURL(string: "file://localhost/")!
print(url.URLByDeletingLastPathComponent!)
outputs:
file://localhost/../
Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden