From 4c21ff5436c816665745115c91b54df1678284c7 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Wed, 8 Jun 2022 20:43:47 +0200 Subject: [PATCH] Prevent `@npcz/magic` from changing access times --- src/utils.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 7a9fefbbe..f008da9ff 100644 --- a/src/utils.js +++ b/src/utils.js @@ -29,7 +29,6 @@ const mimeType = async (opts) => { const { path, buffer } = opts; const magicFile = PATH.join(__dirname, '../assets/magic.mgc'); if (fs.existsSync(magicFile)) FileMagic.magicFile = magicFile; - FileMagic.defaulFlags = MagicFlags.MAGIC_PRESERVE_ATIME; const fileMagic = await FileMagic.getInstance(); let tmppath;