Does the watch of nodejs perform callback twice?

what happened when I first used the nodejs API,watch method to call back twice?

the test.js code is as follows:

const fs = require("fs");
fs.watch("./a.txt", function(eventType,filename){
    console.log(eventType,filename);
});

A few simple lines of code, each time the a.txt file is modified, the log. will be printed twice

Mar.03,2021
A problem under

Windows . In the system, Windows API is called multiple times when modifying a file.
https://github.com/nodejs/nod.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9fd22-1a8a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9fd22-1a8a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?