gx
chenyc
2025-06-12 7b72ac13a83764a662159d4a49b7fffb90476ecb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.plusx = void 0;
const fs_extra_1 = require("fs-extra");
async function plusx(file) {
    const s = await (0, fs_extra_1.stat)(file);
    const newMode = s.mode | 64 | 8 | 1;
    if (s.mode === newMode) {
        return;
    }
    const base8 = newMode.toString(8).slice(-3);
    await (0, fs_extra_1.chmod)(file, base8);
}
exports.plusx = plusx;
//# sourceMappingURL=chmod.js.map