Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: How to... read file permissions? - get-modes & set-modes

From: anton::lexicon::net at: 20-Jul-2002 19:13

Hi Andrew, get-modes is what you want:
>> get-modes %user.r 'file-modes
== [creation-date access-date modification-date owner-write archived hidden system]
>> get-modes %user.r [owner-write] ; a block, so you can get several at a
time == [owner-write: true] There is also 'set-modes. Also check out: http://www.lexicon.net/anton/rebol/util/demo-show-file-modes.r http://www.lexicon.net/anton/rebol/util/show-file-modes.r Anton.