Comments (3)
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.
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.
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)
- doc: improve example docs/code/progress/main.c HOT 1
- win: use WinDNS family of functions for DNS resolving HOT 4
- Improper Validation of Certificate Trust in certifi and dependent packages HOT 4
- 测试在Windows XP系统上运行时遇到RegGetValueW无法定位于ADVAPI32.dll的问题 HOT 4
- uv_tty_reset_mode doesn't work as advertised if original handle is closed HOT 5
- Provide an OS independent way to set/get UV_THREADPOOL_SIZE HOT 8
- Build currently failing on AIX and OS/400 (IBM i) HOT 7
- about test udp_multicast_join | udp_multicast_join6 not ok | not ok 180 - metrics_pool_events HOT 3
- uv_tcp_close_reset() needs to handle some additional errno other than EINVAL on NetBSD HOT 2
- setuid() does not drop all privileges due to io_uring (CVE-2024-22017) HOT 3
- unit test watcher_cross_stop fail in wsl2 HOT 1
- build fail HOT 6
- If you attempt to send a UDP packet to an IPv4 address using an IPv6 socket, sendto() will report the WSAEFAULT error. HOT 9
- Missing symbols in the library file compared to the headers HOT 4
- Issue with GetSystemTimePreciseAsFileTime on Windows Server 2008 in libuv 1.48.0 and Suggested Fix HOT 1
- CMake build fails with FetchContent HOT 2
- the child process (forked from parent process which use libuv) crash with abort() called HOT 4
- UV_UDP_LINUX_RECVERR make loop busy HOT 1
- How can I use libuv raw socket in windows? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libuv.