[Win32utils-devel] Fwd: File::Stat#readable? for Windows?
djberg96 at gmail.com
Mon Nov 11 15:21:26 UTC 2013
That looks perfect, though I might need some help with that one. :)
I did find this example:
On Mon, Nov 11, 2013 at 8:09 AM, Heesob Park <phasis at gmail.com> wrote:
> 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.
> Park Heesob
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the win32utils-devel