Highlighted

Set File Permissions

New Here ,
Oct 26, 2015

Copy link to clipboard

Copied

Hi AIR folks,

My desktop app creates a sqlite file and places it in the shared documents folder for all users to access. On Macs I'm getting errors when trying to write to that file with a different user than the creator. It works fine if I change the file permissions manually to allow 'everyone' to read and write. What I want to do is set those permissions via code when the sqlite file is initially created. I wasn't able to find a way to change the permissions a sqlite (or any other type) file in ActionScript. I've looked at File and FileReference documentation, but hoping I missed something. Any ideas? Thanks!

- JB

TOPICS
Development

Views

145

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Set File Permissions

New Here ,
Oct 26, 2015

Copy link to clipboard

Copied

Hi AIR folks,

My desktop app creates a sqlite file and places it in the shared documents folder for all users to access. On Macs I'm getting errors when trying to write to that file with a different user than the creator. It works fine if I change the file permissions manually to allow 'everyone' to read and write. What I want to do is set those permissions via code when the sqlite file is initially created. I wasn't able to find a way to change the permissions a sqlite (or any other type) file in ActionScript. I've looked at File and FileReference documentation, but hoping I missed something. Any ideas? Thanks!

- JB

TOPICS
Development

Views

146

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 26, 2015 0

Have something to add?

Join the conversation