Closed Bug 1058785 Opened 10 years ago Closed 2 years ago

OS.File.setPermissions documentation

Categories

(Toolkit Graveyard :: OS.File, defect)

32 Branch
x86_64
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: noitidart, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 (Beta/Release)
Build ID: 20140822024446

Steps to reproduce:

Hi guys can you please elaborate on OS.File.setPermissions. I recently created a .desktop file on Ubuntu and whenever clicked it would say "untresuted error" i manged to get it to work by messing aroudn forever on github source code search and found this:
OS.File.setPermissions(path, {unixMode: 0o4777, unixHonorUmask: true})

But I have no idea why that fixed it. I was trying to do this:
OS.File.setPermissions(path, {
        unixMode: OS.Constants.libc.S_IRWXO
    });

but it never worked
Component: Untriaged → OS.File
Product: Firefox → Toolkit
(In reply to noitidart from comment #0)
> "untresuted error" i manged to get it to work by messing aroudn forever on

Sorry, it said what?
Flags: needinfo?(noitidart)
Haha I mean untrusted :P
Image here: http://i.imgur.com/Dx3DFm5.png
Flags: needinfo?(noitidart)
hi all i dont really understand all that can be done with setPermissions, if you can fill me in a little bit ill update the docs

OSFIle is being replaced with IOUtils and PathUtils.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.