Node updated. Some todos.
This commit is contained in:
6
Scripts/node_modules/tar-fs/index.js
generated
vendored
6
Scripts/node_modules/tar-fs/index.js
generated
vendored
@ -1,10 +1,9 @@
|
||||
const tar = require('tar-stream')
|
||||
const pump = require('pump')
|
||||
const mkdirp = require('mkdirp-classic')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const win32 = process.platform === 'win32'
|
||||
const win32 = (global.Bare?.platform || process.platform) === 'win32'
|
||||
|
||||
exports.pack = function pack (cwd, opts) {
|
||||
if (!cwd) cwd = '.'
|
||||
@ -45,6 +44,7 @@ exports.pack = function pack (cwd, opts) {
|
||||
}
|
||||
|
||||
function onstat (err, filename, stat) {
|
||||
if (pack.destroyed) return
|
||||
if (err) return pack.destroy(err)
|
||||
if (!filename) {
|
||||
if (opts.finalize !== false) pack.finalize()
|
||||
@ -298,7 +298,7 @@ exports.extract = function extract (cwd, opts) {
|
||||
xfs.stat(name, function (err) {
|
||||
if (!err) return cb(null)
|
||||
if (err.code !== 'ENOENT') return cb(err)
|
||||
mkdirp(name, { fs: opts.fs, mode: opts.mode }, function (err, made) {
|
||||
xfs.mkdir(name, { mode: opts.mode, recursive: true }, function (err, made) {
|
||||
if (err) return cb(err)
|
||||
chperm(name, opts, cb)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user