Update docs and skills for new directory layout
This commit is contained in:
1 parent
6a50512c4a
commit
7e8b9e6220
6 files changed
+10
-10
No files matched your search
@@ -67,7 +67,7 @@ function saveUsageStatsAtomic(stats: CorpUsageStats, targetPath: string = resolv
|
||||
}
|
||||
const tempPath = `${targetPath}.${process.pid}.${Date.now()}.${Math.random().toString(16).slice(2, 8)}.tmp`;
|
||||
try {
|
||||
// 0o600 like `sealTokens.json`: usage rows name the enterprises this machine has been
|
||||
// 0o600 like `tokens.json`: usage rows name the enterprises this machine has been
|
||||
// operating, so keep them owner-only instead of inheriting the 0o644 default.
|
||||
writeFileSync(tempPath, JSON.stringify(stats, null, 2), { encoding: "utf-8", mode: 0o600 });
|
||||
renameSync(tempPath, targetPath);
|
||||
|
||||
Reference in new issue
Block a user