diff --git a/lib/providers/filesystem/index.js b/lib/providers/filesystem/index.js index 7a4d9ac..9e6dcbd 100644 --- a/lib/providers/filesystem/index.js +++ b/lib/providers/filesystem/index.js @@ -2,10 +2,7 @@ // Node module: loopback-component-storage // This file is licensed under the Artistic License 2.0. // License text available at https://opensource.org/licenses/Artistic-2.0 - -// Turning on strict for this file breaks; -// disabling strict for this file -/* eslint-disable strict */ +'use strict'; // Globalization var g = require('strong-globalize')(); @@ -176,7 +173,7 @@ FileSystemProvider.prototype.upload = function(options, cb) { var fileOpts = {flags: options.flags || 'w+', encoding: options.encoding || null, - mode: options.mode || 0666, + mode: options.mode || parseInt('0666', 8), }; try {