How can I get the common ancestor directory for two or more files in Cocoa/Obj-C?
Posted
by Alexsander Akers
on Stack Overflow
See other posts from Stack Overflow
or by Alexsander Akers
Published on 2010-05-16T23:52:05Z
Indexed on
2010/05/17
0:00 UTC
Read the original article
Hit count: 286
I have a bunch of files, either NSString
s or NSURL
s (it doesn't matter; they are, for the most part, interchangeable), and I need a way to find the common ancestor directory. Does anyone know how to do this?
© Stack Overflow or respective owner