 <p>You can use file API methods to set proper permissions using following methods.</p> <pre><code>setReadable(readable, ownerOnly) / setReadable(readable) setWritable(writable, ownerOnly) / setWritable(writable) setExecutable(executable, ownerOnly) / setExecutable(executable) </code></pre> <p>Regards,</p>