读取本地文件
dsh-plugin-desktop/src/bin.ts:35
const manifest = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')) as { version?: unknown }执行外部命令来自配置/变量
dsh-plugin-desktop/src/bin.ts:47
const child = spawn(electronPath, [mainPath], { stdio: 'inherit', env: process.env })写入本地文件
dsh-plugin-desktop/src/desktop-fault-log.ts:46
mkdirSync(path, { mode: 0o700, recursive: true })读取本地文件
dsh-plugin-desktop/src/desktop-fault-log.ts:50
return statSync(path).size写入本地文件
dsh-plugin-desktop/src/desktop-fault-log.ts:56
appendFileSync(path, value, { encoding: 'utf8', mode: 0o600 })删除本地文件
dsh-plugin-desktop/src/desktop-fault-log.ts:59
rmSync(next, { force: true })写入本地文件
dsh-plugin-desktop/src/desktop-fault-log.ts:60
renameSync(previous, next)读取本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:127
return lstatSync(filename)写入本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:136
mkdirSync(directory, { recursive: true, mode: DIRECTORY_MODE })读取本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:137
const stat = lstatSync(directory)写入本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:141
chmodSync(directory, DIRECTORY_MODE)读取本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:146
const unexpected = readdirSync(directory).filter(entry => !allowed.includes(entry))读取本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:158
for (const entry of readdirSync(directory)) {读取本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:163
const stat = lstatSync(filename)删除本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:167
unlinkSync(filename)删除本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:174
unlinkSync(filename)写入本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:188
writeFileSync(temporary, contents, { encoding: 'utf8', flag: 'wx', mode })写入本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:189
chmodSync(temporary, mode)写入本地文件
dsh-plugin-desktop/src/desktop-runtime-environment.ts:190
renameSync(temporary, filename)删除本地文件递归
dsh-plugin-desktop/src/desktop-runtime-environment.ts:429
rmSync(cacheDir, { force: true, recursive: true })删除本地文件递归
dsh-plugin-desktop/src/desktop-runtime-environment.ts:433
rmSync(cacheDir, { force: true, recursive: true })删除本地文件
dsh-plugin-desktop/src/desktop-terminal.ts:187
unlinkSync(filename)写入本地文件
dsh-plugin-desktop/src/desktop-terminal.ts:197
writeFileSync(temporary, contents, { encoding: 'utf8', flag: 'wx', mode })写入本地文件
dsh-plugin-desktop/src/desktop-terminal.ts:198
chmodSync(temporary, mode)写入本地文件
dsh-plugin-desktop/src/desktop-terminal.ts:199
renameSync(temporary, filename)写入本地文件
dsh-plugin-desktop/src/desktop-terminal.ts:207
mkdirSync(stateDir, { recursive: true, mode: STATE_DIRECTORY_MODE })读取本地文件
dsh-plugin-desktop/src/desktop-terminal.ts:208
const stat = lstatSync(stateDir)写入本地文件
dsh-plugin-desktop/src/desktop-terminal.ts:212
chmodSync(stateDir, STATE_DIRECTORY_MODE)读取本地文件
dsh-plugin-desktop/src/electron-runtime.ts:81
const value: unknown = JSON.parse(readFileSync(new URL('../package.json', moduleUrl), 'utf8'))发起网络请求
dsh-plugin-desktop/src/electron-runtime.ts:128
request: (url, init) => net.fetch(url, init),发起网络请求
dsh-plugin-desktop/src/electron-runtime.ts:615
const response = await window.webContents.session.fetch(authenticationUrl, {写入本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:87
mkdirSync(dirname(filename), { recursive: true, mode: 0o700 })写入本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:89
writeFileSync(temporary, contents, { encoding: 'utf8', flag: 'wx', mode: 0o600 })写入本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:90
renameSync(temporary, filename)读取本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:94
const value: unknown = JSON.parse(readFileSync(filename, 'utf8'))读取本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:191
if (!existsSync(statePath)) return defaultState()读取本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:192
const parsed: unknown = JSON.parse(readFileSync(statePath, 'utf8'))写入本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:216
mkdirSync(seedDir, { recursive: true, mode: 0o700 })写入本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:223
if (existsSync(patch)) copyFileSync(patch, join(seedDir, 'cordis.patch.yml'))读取本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:223
if (existsSync(patch)) copyFileSync(patch, join(seedDir, 'cordis.patch.yml'))读取本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:224
const sourceSettings = existsSync(join(options.currentProfileDir, 'settings.yaml'))读取本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:227
if (existsSync(sourceSettings)) {写入本地文件
dsh-plugin-desktop/src/gala-workspaces.ts:319
mkdirSync(profileDir, { recursive: true, mode: 0o700 })读取本地文件
dsh-plugin-desktop/src/gui-path.ts:32
return readFileSync(path, 'utf8')读取本地文件
dsh-plugin-desktop/src/gui-path.ts:39
return readdirSync(path, { withFileTypes: true })读取本地文件
dsh-plugin-desktop/src/gui-path.ts:49
return statSync(path).isDirectory()发起网络请求
dsh-plugin-desktop/src/main.ts:242
await shutdown.request(0)发起网络请求
dsh-plugin-desktop/src/main.ts:265
const requestQuit = (code: number): void => { void shutdown.request(code) }发起网络请求
dsh-plugin-desktop/src/main.ts:477
await shutdown.request(exitCode)读取本地文件
dsh-plugin-desktop/src/profile-manager.ts:182
for (const entry of readdirSync(profilesDir, { withFileTypes: true })) {读取本地文件
dsh-plugin-desktop/src/profile-manager.ts:190
if (!existsSync(join(dir, PROFILE_MANIFEST_FILENAME))) continue读取本地文件
dsh-plugin-desktop/src/profile-manager.ts:254
return readFileSync(descriptor, 'utf8')读取本地文件
dsh-plugin-desktop/src/profile-manager.ts:264
if (lstatSync(statePath).isSymbolicLink()) {删除本地文件
dsh-plugin-desktop/src/profile-manager.ts:287
unlinkSync(filename)写入本地文件
dsh-plugin-desktop/src/profile-manager.ts:296
mkdirSync(stateDir, { recursive: true, mode: STATE_DIRECTORY_MODE })读取本地文件
dsh-plugin-desktop/src/profile-manager.ts:297
const directoryStat = lstatSync(stateDir)写入本地文件
dsh-plugin-desktop/src/profile-manager.ts:301
chmodSync(stateDir, STATE_DIRECTORY_MODE)写入本地文件
dsh-plugin-desktop/src/profile-manager.ts:304
writeFileSync(temporary, `${JSON.stringify(state, undefined, 2)}\n`, {写入本地文件
dsh-plugin-desktop/src/profile-manager.ts:309
chmodSync(temporary, STATE_FILE_MODE)写入本地文件
dsh-plugin-desktop/src/profile-manager.ts:310
renameSync(temporary, statePath)读取本地文件
dsh-plugin-desktop/src/profile.ts:100
text = readFileSync(spec.filename, 'utf8')读取本地文件
dsh-plugin-desktop/src/profile.ts:184
if (!existsSync(join(dir, 'package.json'))) {写入本地文件
dsh-plugin-desktop/src/profile.ts:318
writeFileSync(rootConfig, '[]\n')读取本地文件
dsh-plugin-desktop/src/splash.ts:65
artDataUrl = `data:${mime};base64,${readFileSync(appearance.artPath).toString('base64')}`发起网络请求
dsh-plugin-desktop/src/update-checker.ts:144
return globalThis.fetch(url, init)读取本地文件
dsh-plugin-desktop/src/windows-volume-diagnostics.ts:31
while (!existsSync(current)) {读取本地文件
dsh-plugin-gala/src/gala-collection.ts:64
raw = readFileSync(filePath, 'utf8')写入本地文件
dsh-plugin-gala/src/gala-collection.ts:85
mkdirSync(dirname(filePath), { recursive: true })写入本地文件
dsh-plugin-gala/src/gala-collection.ts:91
writeFileSync(tmp, `${JSON.stringify(payload, null, 2)}\n`, 'utf8')写入本地文件
dsh-plugin-gala/src/gala-collection.ts:92
renameSync(tmp, filePath)读取本地文件
dsh-plugin-gala/src/gala-host.ts:235
if (existsSync(manifestPath)) {读取本地文件
dsh-plugin-gala/src/gala-host.ts:237
const parsed: unknown = JSON.parse(readFileSync(manifestPath, 'utf8'))读取本地文件
dsh-plugin-gala/src/gala-host.ts:289
return readFileSync(join(activeSkinDir, cssPath), 'utf8')读取本地文件
dsh-plugin-gala/src/gala-host.ts:366
if (existsSync(officialDir)) return officialDir读取本地文件
dsh-plugin-gala/src/gala-host.ts:374
if (root !== undefined && avatar !== '' && existsSync(join(root, avatar))) {读取本地文件
dsh-plugin-gala/src/gala-host.ts:384
if (root === undefined || relativePath === '' || !existsSync(join(root, relativePath))) return null读取本地文件
dsh-plugin-gala/src/gala-http.ts:169
if (!existsSync(absolute) || !statSync(absolute).isFile()) return finish(res, 404)读取本地文件
dsh-plugin-gala/src/gala-http.ts:169
if (!existsSync(absolute) || !statSync(absolute).isFile()) return finish(res, 404)读取本地文件
dsh-plugin-gala/src/gala-http.ts:173
createReadStream(absolute).pipe(res)读取本地文件
dsh-plugin-gala/src/gala-market.ts:199
names = readdirSync(marketDir)读取本地文件
dsh-plugin-gala/src/gala-market.ts:210
parsed = JSON.parse(readFileSync(join(dir, GALA_ENTRY), 'utf8'))读取本地文件
dsh-plugin-gala/src/gala-market.ts:247
if (existsSync(targetDir)) {读取本地文件
dsh-plugin-gala/src/gala-market.ts:256
if (existsSync(targetDir)) {写入本地文件
dsh-plugin-gala/src/gala-market.ts:267
mkdirSync(marketDir, { recursive: true })写入本地文件
dsh-plugin-gala/src/gala-market.ts:272
mkdirSync(dirname(destination), { recursive: true })写入本地文件
dsh-plugin-gala/src/gala-market.ts:273
writeFileSync(删除本地文件递归
dsh-plugin-gala/src/gala-market.ts:280
if (conflict === 'overwrite') rmSync(targetDir, { recursive: true, force: true })写入本地文件
dsh-plugin-gala/src/gala-market.ts:281
renameSync(tempDir, targetDir)删除本地文件递归
dsh-plugin-gala/src/gala-market.ts:283
rmSync(tempDir, { recursive: true, force: true })删除本地文件递归
dsh-plugin-gala/src/gala-market.ts:293
rmSync(targetDir, { recursive: true, force: true })读取本地文件
dsh-plugin-gala/src/gala-persona.ts:38
const parsed: unknown = JSON.parse(readFileSync(filePath, 'utf8'))写入本地文件
dsh-plugin-gala/src/gala-persona.ts:50
mkdirSync(dirname(filePath), { recursive: true })写入本地文件
dsh-plugin-gala/src/gala-persona.ts:53
writeFileSync(tmp, `${JSON.stringify(payload, null, 2)}\n`, 'utf8')写入本地文件
dsh-plugin-gala/src/gala-persona.ts:54
renameSync(tmp, filePath)读取本地文件
dsh-plugin-gala/src/gala-skin.ts:58
raw = readFileSync(filePath, 'utf8')写入本地文件
dsh-plugin-gala/src/gala-skin.ts:80
mkdirSync(dirname(filePath), { recursive: true })写入本地文件
dsh-plugin-gala/src/gala-skin.ts:84
writeFileSync(tmp, `${JSON.stringify(payload, null, 2)}\n`, 'utf8')写入本地文件
dsh-plugin-gala/src/gala-skin.ts:85
renameSync(tmp, filePath)读取本地文件
dsh-plugin-gala/src/gala-splash.ts:61
parsed = JSON.parse(readFileSync(filename, 'utf8'))读取本地文件
dsh-plugin-gala/src/gala-splash.ts:82
entries = readdirSync(marketDir, { withFileTypes: true })读取本地文件
dsh-plugin-gala/src/gala-splash.ts:93
parsed = JSON.parse(readFileSync(join(dir, GALA_ENTRY), 'utf8'))读取本地文件
dsh-plugin-gala/src/gala-splash.ts:107
return existsSync(avatar) ? avatar : undefined写入本地文件
dsh-plugin-gala/src/ggal-pack.ts:145
writeFileSync(path, buildZip(ggalEntries(input), method))读取本地文件
dsh-plugin-gala/src/ggal-zip.ts:106
const buffer = readFileSync(ggalPath)