Skip to content

Commit

Permalink
fattr support for custom filesystem object
Browse files Browse the repository at this point in the history
  • Loading branch information
5saviahv committed Jun 9, 2024
1 parent b7d48a0 commit e4cb43d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions util/fattr.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit e4cb43d

Please sign in to comment.