unix,win: add uv_fs_access()

@saghul here is the `uv_fs_access()` PR you asked for. The Unix side seems to be working, but on the Windows side, `GetFileAttributesW()` is always returning `INVALID_FILE_ATTRIBUTES`. Suggestions are more than welcome.
Generally we prefer the approach Trevor suggested, though the Windows side
might be a bit inconsistent still.

On Friday, October 3, 2014, Colin Ihrig <notifications@github.com> wrote:

> In src/win/fs.c:
>
> > +    uv_fs_cb cb) {
> > +  int err;
> > +
> > +  uv_fs_req_init(loop, req, UV_FS_ACCESS, cb);
> > +
> > +  err = fs__capture_path(loop, req, path, NULL, cb != NULL);
> > +  if (err) {
> > +    return uv_translate_sys_error(err);
> > +  }
> > +
> > +  req->flags = flags;
> > +
> > +  if (cb) {
> > +    QUEUE_FS_TP_JOB(loop, req);
> > +    return 0;
> > +  } else {
>
> Same thing here. This is the convention used throughout the file.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/joyent/libuv/pull/1511/files#r18397003>.
>


-- 
/Saúl
bettercallsaghul.com