nsIFile:isWritable
From MDC
[edit] Summary
This method tests whether or not this nsIFile corresponds to a file or directory that may be modified by the user.
boolean isWritable();
[edit] Return Values
This method returns true if the file or directory may be modified by the user. Otherwise it returns false.