From 388533e3ec6a95fdc5b8be45b165a72ab343aee1 Mon Sep 17 00:00:00 2001 From: Shradha Verma Date: Mon, 4 Jan 2021 10:57:14 -0800 Subject: [PATCH] #71: default external file attributes to File for Unix --- lib/structures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/structures.js b/lib/structures.js index 6317338..b8e9a83 100644 --- a/lib/structures.js +++ b/lib/structures.js @@ -53,7 +53,7 @@ var parseExternalFileAttributes = function (externalAttributes, platform) { case 3: // Unix return { platform: 'Unix', - type: types[(externalAttributes >> 28) & 0x0F], + type: types[(externalAttributes >> 28) & 0x0F] || 'File', // default to File mode: (externalAttributes >> 16) & 0xFFF };