diff --git a/lib/protectFs.js b/lib/protectFs.js index a29abf03..934b68e0 100644 --- a/lib/protectFs.js +++ b/lib/protectFs.js @@ -377,6 +377,9 @@ const ProtectFs = function (log, ioBrokerDataDir) { } }; + // Add missing constants + this.constants = nodeFS.constants; + // Add missing functions for (const m in nodeFS) { if (typeof nodeFS[m] === 'function' && Object.hasOwn(nodeFS, m) && !Object.hasOwn(this, m)) {