From d1291f67551c58168af43698a359cb5ddfd266b0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Nov 2016 01:33:53 +0100 Subject: node_modules --- node_modules/yazl/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'node_modules/yazl/index.js') diff --git a/node_modules/yazl/index.js b/node_modules/yazl/index.js index b9338fabd..3328732f6 100644 --- a/node_modules/yazl/index.js +++ b/node_modules/yazl/index.js @@ -360,6 +360,9 @@ function validateMetadataPath(metadataPath, isDirectory) { return metadataPath; } +var defaultFileMode = parseInt("0100664", 8); +var defaultDirectoryMode = parseInt("040775", 8); + // this class is not part of the public API function Entry(metadataPath, isDirectory, options) { this.utf8FileName = new Buffer(metadataPath); @@ -370,7 +373,7 @@ function Entry(metadataPath, isDirectory, options) { if (options.mode != null) { this.setFileAttributesMode(options.mode); } else { - this.setFileAttributesMode(isDirectory ? 040775 : 0100664); + this.setFileAttributesMode(isDirectory ? defaultDirectoryMode : defaultFileMode); } if (isDirectory) { this.crcAndFileSizeKnown = true; -- cgit v1.2.3