Skip to content

Instantly share code, notes, and snippets.

@Hexagon
Created January 28, 2018 18:01
Show Gist options
  • Save Hexagon/3e931ef130d0e2fe5efed7870599a8b3 to your computer and use it in GitHub Desktop.
Save Hexagon/3e931ef130d0e2fe5efed7870599a8b3 to your computer and use it in GitHub Desktop.
// Stat the file using uv
uv_fs_t stat_req;
stat_req.data = this;
// Run stat, store result and call ready callback
uv_fs_stat(uv_default_loop(), &stat_req, (const char *)composite.c_str(), [](uv_fs_t* req) {
File* self = static_cast<File*>(req->data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment