objective c - iOS Save file to non-private directory -


right working on project uploads files system , wondering if possible save nsdata location not private. when save data right cooresponding url looks this:

file:///private/var/mobile/containers/data/application/.../image.jpg 

but when files uiimagepicker url looks this:

file:///var/mobile/containers/data/application/.../image.jpg 

how can (if possible) save data directory not under private?

just reference code have move files far:

- (nsurl *)movefiletotemporarymemory:(nsurl *)url {   nserror *readingerror, *writingerror;   nsstring *filename = url.lastpathcomponent;   nsurl *tempurl = [[nsurl fileurlwithpath:nstemporarydirectory()] urlbyappendingpathcomponent:filename];   nsdata *data = [nsdata datawithcontentsofurl:url options:nsdatareadingmappedifsafe error:&readingerror];   [data writetourl:tempurl options:nsdatawritingatomic error:&writingerror];   return tempurl; } 

there's no difference -- /var symbolic link /private/var, both paths equivalent.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -