@jsenv/filesystem 4.3.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -8,7 +8,8 @@ import { guardTooFastSecondCallPerFile } from "./internal/guard_second_call.js";
|
|
|
8
8
|
import { createWatcher } from "./internal/createWatcher.js";
|
|
9
9
|
import { trackResources } from "./internal/track_resources.js";
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const isLinux = process.platform === "linux";
|
|
12
|
+
const fsWatchSupportsRecursive = !isLinux;
|
|
12
13
|
|
|
13
14
|
export const registerDirectoryLifecycle = (
|
|
14
15
|
source,
|
|
@@ -344,10 +345,10 @@ const shouldCallUpdated = (entryInfo) => {
|
|
|
344
345
|
if (stat.atimeMs < stat.mtimeMs) {
|
|
345
346
|
return true;
|
|
346
347
|
}
|
|
347
|
-
if (stat.mtimeMs
|
|
348
|
-
return
|
|
348
|
+
if (isLinux && stat.mtimeMs <= previousInfo.stat.mtimeMs) {
|
|
349
|
+
return false;
|
|
349
350
|
}
|
|
350
|
-
return
|
|
351
|
+
return true;
|
|
351
352
|
};
|
|
352
353
|
|
|
353
354
|
const undefinedOrFunction = (value) => {
|