quark-shell-mac icon indicating copy to clipboard operation
quark-shell-mac copied to clipboard

Feature Request: File Read/Write

Open acketon opened this issue 10 years ago • 1 comments

It would be nice to be able to read/write files. The HTML5 File API works but as far as I know requires user interaction/selection of files. Is there a way to disable that security requirement or implement an Objective-C to JS function?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7512386-feature-request-file-read-write?utm_campaign=plugin&utm_content=tracker%2F899498&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F899498&utm_medium=issues&utm_source=github).

acketon avatar Jan 05 '15 21:01 acketon

The problem is sandbox restricts random file access. Under sandbox environment, even normal Objective-C app can’t read/write arbitrary files. I’m able to provide such API for non-sandbox environment, but I don’t have good reasons to do that. I think an open dialog is a good protection to end users.

xhacker avatar Jan 06 '15 05:01 xhacker