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

Daniel Berger 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:

http://blog.aaronballman.com/2011/08/how-to-check-access-rights/

Regards,

Dan


On Mon, Nov 11, 2013 at 8:09 AM, Heesob Park <phasis at gmail.com> wrote:

> 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
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20131111/d27d44c7/attachment.html>


More information about the win32utils-devel mailing list