Files
NapCatQQ/.pnpm-store/v3/files/b5/bb19a26b4e0f44184b81b3bdfb3d6308fadb00d0cb2d2ba42b35c4b6a35fde3e4d0695ecd7c20f6eb81f8b21aa1e1b102211c3ff9ad33f804ecb849db33201
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

20 lines
435 B
Plaintext

const fs = require('./fs.js')
const getOptions = require('./common/get-options.js')
const withOwner = require('./with-owner.js')
// extends mkdir with the ability to specify an owner of the new dir
const mkdir = async (path, opts) => {
const options = getOptions(opts, {
copy: ['mode', 'recursive'],
wrap: 'mode',
})
return withOwner(
path,
() => fs.mkdir(path, options),
opts
)
}
module.exports = mkdir