iPhone filesystem permissions POSIX-compliant?

Posted by Seva Alekseyev on Stack Overflow See other posts from Stack Overflow or by Seva Alekseyev
Published on 2010-04-16T20:59:49Z Indexed on 2010/04/16 21:23 UTC
Read the original article Hit count: 339

Hi all,

I'm trying to pass some files from one app to another. I communicate the path (via a custom URL). The target application cannot read the file, citing errno 13 (permission denied).

I've checked the permissions on file - they're 0644 (O+R), the permissions on directories all the way up to the root are 755 (O+RX). From a POSIX perspective, the file should be readable to any process and any user. Yet it's not. Any ideas, please?

I can think of some workarounds. I could use a Web service (upload, get a cookie, communicate the cookie to the other app, other app downloads). I could also pass the actual file data in the URL - unelegant, and probably subject to length limitations. Clipboard is not supported on iPhone OS 2 IIRC.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch