Code Monkey home page Code Monkey logo

Comments (3)

bottle2 avatar bottle2 commented on July 18, 2024

aah, and I did zero experiments with directories. but as far as watching individual files go, the status parameter is useless in the callback. maybe you should document its purpose, or lack thereof?

Bento@DESKTOP-HKLKRD2 CLANG64 /e/aqueduct1
$ pacman -Qi $(pacman -Qqs libuv | head -1)
Name            : mingw-w64-clang-x86_64-libuv
Version         : 1.48.0-1
Description     : Cross-platform asynchronous I/O (mingw-w64)
Architecture    : any
URL             : https://libuv.org/
Licenses        : custom
Groups          : None
Provides        : None
Depends On      : mingw-w64-clang-x86_64-gcc-libs
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 3.39 MiB
Packager        : CI (msys2/msys2-autobuild/d4515ba2/7826042214)
Build Date      : Thu Feb 8 04:18:43 2024
Install Date    : Tue May 14 16:03:14 2024
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : SHA-256 Sum  Signature


Bento@DESKTOP-HKLKRD2 CLANG64 /e/aqueduct1
$

I think that's enough information hahahah sorry

from libuv.

bnoordhuis avatar bnoordhuis commented on July 18, 2024

uv_fs_event_t uses platform-specific capabilities to monitor files and directories. As such, it's limited by the functionality the platform provides. The documentation sort of mentions it, albeit perhaps a little obliquely. I'll see if I can improve it.

If you want something that's more consistent across platforms, use uv_fs_poll_t instead.

from libuv.

bottle2 avatar bottle2 commented on July 18, 2024

yeah, I studied the issue in meanwhile and I now acknowledge slightly the limitation. in the next few years, I hope to add a fourth API to Linux and maybe a similar API in other UNIX to obtain the desired behavior.
thanks

edit: wow I totally missed uv_fs_poll_t!! I'll experiment with it, thanks!

from libuv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.