[Win32utils-devel] Fwd: File::Stat#readable? for Windows?

Heesob Park phasis at gmail.com
Mon Nov 11 15:09:28 UTC 2013


Hi,

2013/11/11 Daniel Berger <djberg96 at gmail.com>:
> Resend due to mailing list issues.
>
> ---------- Forwarded message ----------
> From: Daniel Berger <djberg96 at gmail.com>
> Date: Wed, Nov 6, 2013 at 5:52 AM
> Subject: File::Stat#readable? for Windows?
> To: Development and ideas for win32utils projects
> <win32utils-devel at rubyforge.org>
>
>
> Hi all,
>
> Wouldn't implementing a working File::Stat#readable? method for Windows be a
> simple matter of checking whether or not File.open(file, 'r') works? At
> least for regular files?
>
> Or am I missing something?
>
I think AccessCheck API function could be used for access rights check.

Regards,
Park Heesob


More information about the win32utils-devel mailing list