git ssb

0+

cel-desktop / ssb-pkg



Tree: 4c58f1c6c3ddb86a97f27f0c84681d201ef1f75f

Files: 4c58f1c6c3ddb86a97f27f0c84681d201ef1f75f / lib / chmod.js

258 bytesRaw
1import { chmod, stat } from 'fs-extra';
2
3export async function plusx (file) {
4 const s = await stat(file);
5 const newMode = s.mode | 64 | 8 | 1;
6 if (s.mode === newMode) return;
7 const base8 = newMode.toString(8).slice(-3);
8 await chmod(file, base8);
9}
10

Built with git-ssb-web