读取本地文件
packages/hardware-guard/lib/adaptation.js:104
text = readFileSync(path, "utf8");读取本地文件
packages/hardware-guard/lib/cleanup-actions.js:107
rootInfo = lstatSync(root);读取本地文件
packages/hardware-guard/lib/cleanup-actions.js:133
info = lstatSync(entryPath);删除本地文件递归
packages/hardware-guard/lib/cleanup-actions.js:145
rmSync(entryPath, { recursive: true, force: false, maxRetries: 2 });写入本地文件
packages/hardware-guard/lib/cleanup-actions.js:245
await mkdir(dir, { recursive: true });写入本地文件
packages/hardware-guard/lib/cleanup-actions.js:248
await rename(path, target);写入本地文件
packages/hardware-guard/lib/cleanup-actions.js:251
await copyFile(path, target);删除本地文件
packages/hardware-guard/lib/cleanup-actions.js:252
await unlink(path);读取本地文件
packages/hardware-guard/lib/cleanup-actions.js:286
const rootReal = await realpath(candidate.root);读取本地文件
packages/hardware-guard/lib/cleanup-actions.js:287
const pathReal = await realpath(dirname(resolved));读取本地文件
packages/hardware-guard/lib/cleanup-actions.js:292
const info = await lstat(resolved);删除本地文件
packages/hardware-guard/lib/cleanup-actions.js:304
await unlink(resolved);读取本地文件
packages/hardware-guard/lib/cleanup-actions.js:364
info = lstatSync(child);删除本地文件递归
packages/hardware-guard/lib/cleanup-actions.js:469
rmSync(child, { recursive: true, force: false, maxRetries: 2 });读取本地文件
packages/hardware-guard/lib/control.js:60
text = readFileSync(path, "utf8");读取本地文件
packages/hardware-guard/lib/disk.js:70
return readFileSync(path, "utf8");读取本地文件
packages/hardware-guard/lib/host-profile.js:30
return readFileSync(path, "utf8");写入本地文件
packages/hardware-guard/lib/host-profile.js:496
mkdirSync(dir, { recursive: true });写入本地文件
packages/hardware-guard/lib/host-profile.js:506
mkdirSync(dirname(path), { recursive: true });写入本地文件
packages/hardware-guard/lib/host-profile.js:510
writeFileSync(fd, text, { encoding: "utf8" });写入本地文件
packages/hardware-guard/lib/host-profile.js:517
renameSync(tmp, path);读取本地文件
packages/hardware-guard/lib/host-profile.js:770
return existsSync(path);读取本地文件
packages/hardware-guard/lib/incidents.js:81
size = statSync(path).size;读取本地文件
packages/hardware-guard/lib/incidents.js:89
if (existsSync(archive)) rmSync(archive, { force: true });删除本地文件
packages/hardware-guard/lib/incidents.js:89
if (existsSync(archive)) rmSync(archive, { force: true });写入本地文件
packages/hardware-guard/lib/incidents.js:90
renameSync(path, archive);写入本地文件
packages/hardware-guard/lib/incidents.js:100
mkdirSync(dirname(path), { recursive: true });写入本地文件
packages/hardware-guard/lib/incidents.js:103
writeFileSync(fd, text, { encoding: "utf8" });读取本地文件
packages/hardware-guard/lib/incidents.js:154
return readFileSync(candidate, "utf8");读取本地文件
packages/hardware-guard/lib/lifecycle.js:37
text = readFileSync(path, "utf8");读取本地文件
packages/hardware-guard/lib/pressure.js:38
return readFileSync(path, "utf8");读取本地文件
packages/hardware-guard/lib/probe.js:95
const rootStat = await stat(root);读取本地文件
packages/hardware-guard/lib/probe.js:110
entries = await readdir(dir, { withFileTypes: true });读取本地文件
packages/hardware-guard/lib/probe.js:134
info = await stat(full);读取本地文件
packages/hardware-guard/lib/proc-tree.js:16
return readFileSync(path, "utf8");读取本地文件
packages/hardware-guard/lib/proc-tree.js:66
entries = readdirSync("/proc");读取本地文件
packages/hardware-guard/lib/storage.js:61
return lstatSync(path);读取本地文件
packages/hardware-guard/lib/storage.js:75
directory = statSync(path).isDirectory();读取本地文件
packages/hardware-guard/lib/storage.js:84
const info = lstatSync(source);写入本地文件
packages/hardware-guard/lib/storage.js:86
copyFileSync(source, target);写入本地文件
packages/hardware-guard/lib/storage.js:88
chmodSync(target, info.mode & 0o777);写入本地文件
packages/hardware-guard/lib/storage.js:101
utimesSync(target, info.atime, info.mtime);读取本地文件
packages/hardware-guard/lib/storage.js:109
const info = lstatSync(source);写入本地文件
packages/hardware-guard/lib/storage.js:116
mkdirSync(target, { recursive: true });读取本地文件
packages/hardware-guard/lib/storage.js:117
for (const entry of readdirSync(source, { withFileTypes: true })) {写入本地文件
packages/hardware-guard/lib/storage.js:129
utimesSync(target, info.atime, info.mtime);读取本地文件
packages/hardware-guard/lib/storage.js:193
result.legacyPresent = existsSync(legacyDir);写入本地文件
packages/hardware-guard/lib/storage.js:201
mkdirSync(canonicalDir, { recursive: true });删除本地文件递归
packages/hardware-guard/lib/storage.js:226
rmSync(staging, { recursive: true, force: true });删除本地文件递归
packages/hardware-guard/lib/storage.js:241
rmSync(staging, { recursive: true, force: true });发起网络请求
packages/hardware-guard/lib/tool.js:195
outcome = await approval.request({执行外部命令来自配置/变量
packages/hardware-guard/lib/watchdog.js:51
const stdout = execFileSync(argv[0], argv.slice(1), {读取本地文件
packages/resource-allocation/lib/adopt.js:166
export function readFleetSnapshot(path, { read = (p) => { try { return readFileSync(p, "utf8"); } catch { return null; } } } = {}) {读取本地文件
packages/resource-allocation/lib/discover.js:56
readdir: (dir) => readdirSync(dir, { withFileTypes: true }),读取本地文件
packages/resource-allocation/lib/discover.js:57
readFile: (path) => readFileSync(path, "utf8"),读取本地文件
packages/resource-allocation/lib/discover.js:61
return statSync(path).isDirectory();读取本地文件
packages/resource-allocation/lib/index.js:73
const hasFacts = (dir) => existsSync(join(dir, "host-profile.json")) || existsSync(join(dir, "incidents.jsonl"));读取本地文件
packages/resource-allocation/lib/proc.js:20
return readFileSync(path, "utf8");读取本地文件
packages/resource-allocation/lib/queue.js:40
export function readQueueDoc(path, { read = (p) => readFileSync(p, "utf8") } = {}) {读取本地文件
packages/resource-allocation/lib/registry.js:46
return readFileSync(path, "utf8");写入本地文件
packages/resource-allocation/lib/registry.js:60
mkdirSync(dirname(path), { recursive: true });写入本地文件
packages/resource-allocation/lib/registry.js:64
writeFileSync(fd, text, { encoding: "utf8" });写入本地文件
packages/resource-allocation/lib/registry.js:79
renameSync(tmp, path);读取本地文件
packages/resource-allocation/lib/runs.js:55
return readFileSync(path, "utf8");写入本地文件
packages/resource-allocation/lib/storage.js:48
mkdirSync(dirname(path), { recursive: true });写入本地文件
packages/resource-allocation/lib/storage.js:52
writeFileSync(fd, data);写入本地文件
packages/resource-allocation/lib/storage.js:67
renameSync(tmp, path);读取本地文件
packages/resource-allocation/lib/storage.js:68
const verified = readFileSync(path);写入本地文件
packages/resource-allocation/lib/storage.js:81
mkdirSync(dirname(path), { recursive: true });写入本地文件
packages/resource-allocation/lib/storage.js:85
writeFileSync(fd, data);删除本地文件
packages/resource-allocation/lib/storage.js:103
try { unlinkSync(tmp); } catch { }读取本地文件
packages/resource-allocation/lib/storage.js:107
const verified = readFileSync(path);删除本地文件
packages/resource-allocation/lib/storage.js:109
try { unlinkSync(path); } catch { }删除本地文件
packages/resource-allocation/lib/storage.js:113
try { unlinkSync(tmp); } catch { }读取本地文件
packages/resource-allocation/lib/storage.js:119
return statSync(path).isFile();读取本地文件
packages/resource-allocation/lib/storage.js:141
read = (path) => readFileSync(path)写入本地文件
packages/resource-allocation/lib/storage.js:147
mkdirSync(targetDir, { recursive: true });发起网络请求
packages/resource-allocation-ui/lib/client.js:548
return fetch(url).then(async (response) => {发起网络请求
packages/resource-allocation-ui/lib/client.js:573
return fetch(url, {