Skip to content

Commit

Permalink
Prevent @npcz/magic from changing access times
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Jun 8, 2022
1 parent ac54496 commit 4c21ff5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4c21ff5

Please sign in to comment.