in reply to Re: How to identify a file is in readonly mode
in thread How to identify a file is in readonly mode

Hi,
You can refer this Node in the Q & A section .
Raja
  • Comment on Re^2: How to identify a file is in readonly mode

Replies are listed 'Best First'.
Re^3: How to identify a file is in readonly mode
by Bloodnok (Vicar) on Jul 18, 2009 at 14:25 UTC
    Hmmm, not quite.

    -w tests to see if the script is capable of writing (to) the file i.e. using the statically defined permissions on the file, not dynamically i.e. run-time determination, as required by the OP.

    A user level that continues to overstate my experience :-))