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

[REBOL] How to... read file permissions?

From: al::bri::xtra::co::nz at: 20-Jul-2002 19:11

I can make a file read only with:
>> write/allow %Test.txt "Test is read only" [read]
And to check:
>> delete %Test.txt
** Access Error: Cannot delete Test.txt ** Where: throw-on-error ** Near: delete %Test.txt Now I read a random file:
>> read %"Random File.txt"
== "Hello! I'm a random file!^/" How can I find out through Rebol (without writing to %"Random File.txt" and potentially destroying it's contents) if the file is read only? Andrew Martin Read-ing & Write-ing the Rebolution... ICQ: 26227169 http://valley.150m.com/