commit
b6528e184f
|
@ -2,10 +2,7 @@
|
||||||
// Node module: loopback-component-storage
|
// Node module: loopback-component-storage
|
||||||
// This file is licensed under the Artistic License 2.0.
|
// This file is licensed under the Artistic License 2.0.
|
||||||
// License text available at https://opensource.org/licenses/Artistic-2.0
|
// License text available at https://opensource.org/licenses/Artistic-2.0
|
||||||
|
'use strict';
|
||||||
// Turning on strict for this file breaks;
|
|
||||||
// disabling strict for this file
|
|
||||||
/* eslint-disable strict */
|
|
||||||
|
|
||||||
// Globalization
|
// Globalization
|
||||||
var g = require('strong-globalize')();
|
var g = require('strong-globalize')();
|
||||||
|
@ -176,7 +173,7 @@ FileSystemProvider.prototype.upload = function(options, cb) {
|
||||||
|
|
||||||
var fileOpts = {flags: options.flags || 'w+',
|
var fileOpts = {flags: options.flags || 'w+',
|
||||||
encoding: options.encoding || null,
|
encoding: options.encoding || null,
|
||||||
mode: options.mode || 0666,
|
mode: options.mode || parseInt('0666', 8),
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue