-
Notifications
You must be signed in to change notification settings - Fork 653
Conversation
Thanks Colin! I'll check it asap (I'm moving these days and my Windows gear is in a box somewhere...) |
@@ -2102,6 +2114,29 @@ int uv_fs_sendfile(uv_loop_t* loop, uv_fs_t* req, uv_file fd_out, | |||
} | |||
|
|||
|
|||
int uv_fs_access(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, | |||
uv_fs_cb cb) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style nit: prefer the following:
int uv_fs_access(uv_loop_t* loop,
uv_fs_t* req,
const char* path,
int flags,
uv_fs_cb cb) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but this seems to be the convention used throughout this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saghul keep convention w/ the rest of the file, or use the usual indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd go with the usual.
@saghul addressed the previous round of comments and got it working on Windows. |
uv_fs_req_init(loop, req, UV_FS_ACCESS, cb); | ||
|
||
err = fs__capture_path(loop, req, path, NULL, cb != NULL); | ||
if (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for braces.
Good work Chris! Looks solid. I'll merge once after running it for a spin on Windows. Did you look into what @piscisaureus said about |
Cheers, Colin! Landed in c18205a. |
Awesome. Thanks for the help @saghul. @trevnorris I'm sure you'll get an email about this, but you asked me to let you know when this landed. |
@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 returningINVALID_FILE_ATTRIBUTES
. Suggestions are more than welcome.