The documentation for NSURL -URLByAppendingPathComponent: states:
"Returns a new URL by appending a path component to the original URL."
Path component is singular. But this "works" :
NSURL *testURL = [applicationsDirectory URLByAppendingPathComponent:@"Evil/../../" isDirectory:YES];
So my questions are:
One) Was it always this way? I can't recall if it was like this before the Foundation rewrite and I just never stumbled across?
and
Two) Is it intended behavior?
The API seems to suggest that you append one path component on the url with this method. But I guess you can append as many as you want?