[REBOL] Re: File-modes on different platforms
From: etienne:alaurent:free at: 18-May-2002 3:26
Hi Anton,
I forgot to tell you the results I sent were on linux.
Anton wrote:
>Hello,
>
>I am interested to see the different file modes
>available on different platforms.
>I have tested on Windows2k and NT4.
>I need Linux, Amiga, Mac and any others.
>I would like you out there who have one of the above platforms to
>try the following code and report back with the result.
>
>save file: %anton-filemode-test "" ; create a file to experiment on
>foreach mode get-modes %dummy 'file-modes [
> print [
> type? get-modes file mode
> mode
> if error? set/any 'err try [
> set-modes file compose [
> (to-set-word mode) (get-modes file mode)
> ]
> ][probe disarm err]
> ]
>]
>delete file ; clean up
>
>The code just prints out the datatype of each mode,
>the mode word, and reports if there was an error
>setting that mode. (I want to see which modes cannot
>be modified, if any.)
>
>Thank you very much,
>and thanks to Ammon for your response on this matter
>on 20 April.
>
>Anton.
>
--
regards.
---
Etienne