Boost logo

Boost :

From: Jan Langer (jan_at_[hidden])
Date: 2002-03-26 20:26:16


On Wed, 27 Mar 2002, Ross Smith wrote:
>> - i would replace the readonly-flag by writable and readable (and also
>> is_readonly by is_readable and is_writeable). this is much clearer.
>
>I would too if it was practical, but either way it's too hard to
>implement on Unix. (is_readable() would be easy, just try to open it,
>but is_writable() is next to impossible.)

why? you can read the file permissions and owner informations with stat,
the gid and uid with getuid and getgid and then compare them.

-- 
jan langer ... jan_at_[hidden]
"pi ist genau drei"

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk