Visit Mozilla.org

nsIFile:permissions

From MDC

« XPCOM API Reference

[edit] Summary

This attribute exposes UNIX-style permission bits for this nsIFile.

 attribute unsigned long permissions;

[edit] Remarks

The value of this attribute is a UNIX-style file permission mask.

Changing the permissions of a nsIFile operates on the underlying filesystem. As of Mozilla 1.7, changing the permissions of a non-existent file has undefined behavior.