From e4cb43d3cab693166be2405b266595eea7f3aa3c Mon Sep 17 00:00:00 2001 From: 5saviahv <5saviahv@users.noreply.github.com> Date: Mon, 10 Jun 2024 02:58:50 +0300 Subject: [PATCH] fattr support for custom filesystem object --- util/fattr.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/util/fattr.js b/util/fattr.js index 163e2e5..720b827 100644 --- a/util/fattr.js +++ b/util/fattr.js @@ -1,9 +1,6 @@ -const fs = require("./fileSystem").require(); const pth = require("path"); -fs.existsSync = fs.existsSync || pth.existsSync; - -module.exports = function (/*String*/ path) { +module.exports = function (/*String*/ path, /*Utils object*/ { fs }) { var _path = path || "", _obj = newAttr(), _stat = null;