Files
skillshare/internal/sourcefs/testdata/raw_writes.tsv
T
Willie 11c2821350 fix(config): write the project migration through a fresh temp file
The legacy target migration wrote to the predictable path
config.yaml.tmp next to the validated destination. A cloned project
could ship that name as a symlink to a file outside the project, so
merely loading the project overwrote the outside file and the rename
then replaced the project config with the link.

Create the temp file with os.CreateTemp in the destination directory,
which never follows an existing name, and remove it if any step fails.
2026-10-07 10:46:00 +08:00

40 KiB

1# Raw os write calls allowed outside sourcefs. See ratchet_test.go.
2# filefunctioncalleepath argumentreason
3cmd/skillshare/completion.gocmdCompletionos.MkdirAlldirshell
4cmd/skillshare/completion.gocmdCompletionos.WriteFiledestPathshell
5cmd/skillshare/doctor.gocheckSymlinkSupportos.MkdirAlltestTargettmp
6cmd/skillshare/doctor.gocheckSymlinkSupportos.RemovetestLinktmp
7cmd/skillshare/doctor.gocheckSymlinkSupportos.RemovetestLinktmp
8cmd/skillshare/doctor.gocheckSymlinkSupportos.RemoveAlltestTargettmp
9cmd/skillshare/doctor.gocheckSymlinkSupportos.RemoveAlltestTargettmp
10cmd/skillshare/doctor.gocheckTargetIssuesos.CreatetestFiletarget
11cmd/skillshare/doctor.gocheckTargetIssuesos.RemovetestFiletarget
12cmd/skillshare/extras_init.goextrasInitGlobalos.MkdirAllsourceDirextras
13cmd/skillshare/extras_init.goextrasInitProjectos.MkdirAllsourceDirextras
14cmd/skillshare/extras_remove.gocleanEmptyExtrasDiros.Removedirextras
15cmd/skillshare/extras_remove.gocleanEmptyExtrasDirQuietos.Removedirextras
16cmd/skillshare/helpers.gocopyDiros.MkdirAlldstPathsource-unmigrated
17cmd/skillshare/helpers.gocopyFileos.OpenFiledstsource-unmigrated
18cmd/skillshare/helpers.goremoveEmptyDiros.Removedirextras
19cmd/skillshare/init_apply.goapplyInitPlanos.MkdirAlldirsource-root
20cmd/skillshare/init_apply.goreplaceIdenticalCopiesos.RemoveAlldsttarget
21cmd/skillshare/init_project.gocreateProjectTargetDirsos.MkdirAllabsPathtarget
22cmd/skillshare/init_project.goensureProjectGitignoreos.WriteFilegitignorePathproject
23cmd/skillshare/init_remote.goinspectRemoteos.MkdirTemptmp
24cmd/skillshare/init_remote.goinspectRemoteos.RemoveAlltmptmp
25cmd/skillshare/json_output.gosuppressUIToDevnullos.OpenFileos.DevNulldevnull
26cmd/skillshare/main.gocleanupOldBinaryos.RemoveoldPathbinary
27cmd/skillshare/new.gocmdNewos.MkdirAlldirPathsource-unmigrated
28cmd/skillshare/new.gocmdNewos.MkdirAllskillDirsource-unmigrated
29cmd/skillshare/new.gocmdNewos.RemoveAllskillDirsource-unmigrated
30cmd/skillshare/new.gocmdNewos.WriteFilegitkeepsource-unmigrated
31cmd/skillshare/new.gocmdNewos.WriteFileskillFilesource-unmigrated
32cmd/skillshare/restore_tui.go(restoreTUIModel).startDeleteos.RemoveAlltsDirbackup
33cmd/skillshare/restore_tui.go(restoreTUIModel).startDeleteos.RemoveAllversion.Dirbackup
34cmd/skillshare/target.gounlinkMergeModeos.RemoveskillPathtarget
35cmd/skillshare/target.gounlinkSymlinkModeos.RemovetargetPathtarget
36cmd/skillshare/target_project.gotargetAddProjectos.MkdirAllabsPathtarget
37cmd/skillshare/trash.gotrashDeleteos.RemoveAllentry.Pathtrash
38cmd/skillshare/trash.gotrashEmptyos.RemoveAllitem.Pathtrash
39cmd/skillshare/trash_tui.go(trashTUIModel).startOperationos.RemoveAllentry.Pathtrash
40cmd/skillshare/ui.goclearCurrentUIStateIfMatchesos.RemovecurrentUIStateFile()config
41cmd/skillshare/ui.goopenUILogos.MkdirAlldirconfig
42cmd/skillshare/ui.gostopUIos.RemoveuiPidFile(opts)config
43cmd/skillshare/ui.gostopUIos.RemoveuiPidFile(opts)config
44cmd/skillshare/ui.gostopUIos.RemoveuiPidFile(opts)config
45cmd/skillshare/ui.gowriteCurrentUIStateos.MkdirAllconfig.CacheDir()config
46cmd/skillshare/ui.gowriteCurrentUIStateos.WriteFilecurrentUIStateFile()config
47cmd/skillshare/ui.gowriteUIPidFileos.MkdirAllconfig.CacheDir()config
48cmd/skillshare/ui.gowriteUIPidFileos.WriteFileuiPidFile(opts)config
49cmd/skillshare/upgrade.godownloadAndReplaceos.RemovearchivePathbinary
50cmd/skillshare/upgrade.godownloadArchiveos.CreateTempbinary
51cmd/skillshare/upgrade.godownloadArchiveos.Removetmp.Name()binary
52cmd/skillshare/upgrade.gowriteBinaryos.ChmodtmpPathbinary
53cmd/skillshare/upgrade.gowriteBinaryos.CreateTempfilepath.Dir(destPath)binary
54cmd/skillshare/upgrade.gowriteBinaryos.RemoveoldPathbinary
55cmd/skillshare/upgrade.gowriteBinaryos.RemoveoldPathbinary
56cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
57cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
58cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
59cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
60cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
61cmd/skillshare/upgrade.gowriteBinaryos.RenamedestPath, oldPathbinary
62cmd/skillshare/upgrade.gowriteBinaryos.RenameoldPath, destPathbinary
63cmd/skillshare/upgrade.gowriteBinaryos.RenametmpPath, destPathbinary
64cmd/skillshare/upgrade.gowriteBinaryos.RenametmpPath, destPathbinary
65internal/audit/patterns.goInitRulesFileos.MkdirAllfilepath.Dir(path)config
66internal/audit/patterns.goInitRulesFileos.WriteFilepathconfig
67internal/audit/rules_mutate.goResetRulesos.Removepathconfig
68internal/audit/rules_mutate.gowriteRulesFileos.MkdirAllfilepath.Dir(path)config
69internal/audit/rules_mutate.gowriteRulesFileos.WriteFilepathconfig
70internal/backup/backup.gocopyDiros.MkdirAlldstbackup
71internal/backup/backup.gocopyFileos.OpenFiledstbackup
72internal/backup/backup.gocreateInDiros.ChmodstagingPathbackup
73internal/backup/backup.gocreateInDiros.MkdirAllbackupDirbackup
74internal/backup/backup.gocreateInDiros.MkdirAlltimestampDirbackup
75internal/backup/backup.gocreateInDiros.MkdirTempbackupDirbackup
76internal/backup/backup.gocreateInDiros.RemoveAllstagingPathbackup
77internal/backup/backup.gocreateInDiros.RenamestagingPath, backupPathbackup
78internal/backup/backup.goremoveDirIfEmptyos.Removepathbackup
79internal/backup/cleanup.goCleanupInDiros.RemoveAllbackup.Pathbackup
80internal/backup/cleanup.gocleanEmptyDirsos.RemovesubPathbackup
81internal/backup/delete.goDeleteInDiros.RemoveAllpathbackup
82internal/backup/restore.goRestoreToPathos.RemovedestPathtarget
83internal/backup/restore.goRestoreToPathos.RemoveAlldestPathtarget
84internal/check/checktest/fixture.goSeedos.MkdirAlldirtest-helper
85internal/check/tree_check.goFetchRemoteTreeHashesForRefos.MkdirTemptmp
86internal/check/tree_check.goFetchRemoteTreeHashesForRefos.RemoveAlltmpDirtmp
87internal/config/config.go(*Config).Saveos.MkdirAlldirconfig
88internal/config/config.go(*Config).Saveos.WriteFilepathconfig
89internal/config/config.goLoados.RenametmpPath, destconfig
90internal/config/config.goLoados.WriteFiletmpPathconfig
91internal/config/config.gomigrateSkillsToRegistryos.WriteFileconfigPathconfig
92internal/config/extras_migrate.goMigrateExtrasDiros.RenameoldPath, newPathextras
93internal/config/migrate.gomigrateDiros.MkdirAllfilepath.Dir(newPath)source-root
94internal/config/migrate.gomigrateDiros.RenameoldPath, newPathsource-root
95internal/config/project.go(*ProjectConfig).SaveInos.MkdirAlldirconfig
96internal/config/project.go(*ProjectConfig).SaveInos.WriteFilepathconfig
97internal/config/project.goLoadProjectos.Chmodf.Name()config
98internal/config/project.goLoadProjectos.CreateTempfilepath.Dir(dest)config
99internal/config/project.goLoadProjectos.Removef.Name()config
100internal/config/project.goLoadProjectos.Renamef.Name(), destconfig
101internal/config/registry.go(*Registry).Saveos.MkdirAlldirsource-unmigrated
102internal/config/registry.go(*Registry).Saveos.WriteFilepathsource-unmigrated
103internal/config/registry.goMigrateRegistryToSourceos.RemoveoldPathsource-unmigrated
104internal/config/registry.goMigrateRegistryToSourceos.WriteFilenewPathsource-unmigrated
105internal/git/info.goresolveMetadataConflictsos.WriteFilefilepath.Join(dir, path)source-unmigrated
106internal/git/info.gorestorePullResidueos.Removefullsource-unmigrated
107internal/git/scope.goDisableNestedRepoos.RenamegitDir, disabledsource-unmigrated
108internal/git/scope.goInitScopeRepoos.MkdirAlldirsource-unmigrated
109internal/git/scope.goWriteScopeGitignoreos.WriteFilegitignoresource-unmigrated
110internal/git/scope.goWriteScopeGitignoreos.WriteFilegitignoresource-unmigrated
111internal/git/scope.goappendGitignoreLineos.WriteFilegitignoresource-unmigrated
112internal/git/scope.goensureGitignoreEntryos.WriteFilegitignoresource-unmigrated
113internal/git/scope.goensureGitignoreEntryos.WriteFilegitignoresource-unmigrated
114internal/git/scope.goremoveCheckedOutos.Removepathsource-unmigrated
115internal/git/scope.goremoveCheckedOutos.RemoveAllpathsource-unmigrated
116internal/git/scope.gosnapshotConfigos.Chmodpathsource-unmigrated
117internal/git/scope.gosnapshotConfigos.Symlinktarget, pathsource-unmigrated
118internal/git/scope.gosnapshotConfigos.WriteFilepathsource-unmigrated
119internal/hooks/apply.go(*Service).applyScopedos.Removef.pathplugin
120internal/hooks/apply.go(*Service).applyScopedos.Removes.journalPath()plugin
121internal/hooks/apply.go(*Service).applyScopedos.Removes.journalPath()plugin
122internal/hooks/apply.go(*Service).pruneBackupsos.Removefilepath.Join(dir, name)plugin
123internal/hooks/apply.go(*Service).recoverPendingos.Removes.journalPath()plugin
124internal/hooks/apply.goatomicWriteos.CreateTempfilepath.Dir(path)plugin
125internal/hooks/apply.goatomicWriteos.MkdirAllfilepath.Dir(path)plugin
126internal/hooks/apply.goatomicWriteos.Removefile.Name()plugin
127internal/hooks/apply.goatomicWriteos.Renamefile.Name(), pathplugin
128internal/hooks/apply.gopruneCreatedDirsos.Removedirplugin
129internal/hooks/apply.gopruneEmptyDirsos.Removedirplugin
130internal/hooks/git_ops.go(*filePlan).prepareGitWriteos.CreateTempfilepath.Dir(f.path)plugin
131internal/hooks/git_ops.go(*filePlan).prepareGitWriteos.MkdirAllfilepath.Dir(f.path)plugin
132internal/hooks/git_ops.go(*filePlan).prepareGitWriteos.Removef.pathplugin
133internal/hooks/git_ops.go(*filePlan).prepareGitWriteos.RemovestagePathplugin
134internal/hooks/service.go(*Service).lockos.MkdirAlls.stateDir()plugin
135internal/hub/drafts.go(DraftStore).Deleteos.Removepathconfig
136internal/hub/drafts.go(DraftStore).lockedos.MkdirAlls.Dirconfig
137internal/hub/drafts.go(DraftStore).persistos.CreateTemps.Dirconfig
138internal/hub/drafts.go(DraftStore).persistos.Removetmp.Name()config
139internal/hub/drafts.go(DraftStore).persistos.Renametmp.Name(), pathconfig
140internal/hub/index.goWriteIndexos.MkdirAllfilepath.Dir(path)source-unmigrated
141internal/hub/index.goWriteIndexos.WriteFilepathsource-unmigrated
142internal/install/copy.gocopyDirExcludingos.MkdirAlldstPathsource-unmigrated
143internal/install/copy.gocopyFileos.OpenFiledstsource-unmigrated
144internal/install/gitea_download.gocnbWriteContentItemos.MkdirAlltargetclone
145internal/install/gitea_download.gocnbWriteContentItemos.MkdirAlltargetclone
146internal/install/gitea_download.godownloadCNBDiros.MkdirAlldestDirclone
147internal/install/gitea_download.godownloadGiteaDiros.MkdirAlldestDirclone
148internal/install/gitea_download.gogiteaDownloadDirRecursiveos.MkdirAllchildDirclone
149internal/install/github_download.godownloadDirRecursiveos.MkdirAllchildDirclone
150internal/install/github_download.godownloadGitHubDirWithAPIBaseos.MkdirAlldestDirclone
151internal/install/github_download.gowriteDownloadedFileos.MkdirAllfilepath.Dir(destPath)clone
152internal/install/github_download.gowriteDownloadedFileos.OpenFiledestPathclone
153internal/install/gitignore.gowriteGitignoreLinesos.WriteFilepathsource-unmigrated
154internal/install/install.go<package>os.RemoveAll<ref>source-unmigrated
155internal/install/install.go<package>os.RemoveAll<ref>source-unmigrated
156internal/install/install_apply.goUpdateAgentFromDiscoveryos.MkdirAllfilepath.Dir(destFile)agents
157internal/install/install_apply.goUpdateAgentFromDiscoveryos.MkdirTemptmp
158internal/install/install_apply.goUpdateAgentFromDiscoveryos.RemoveAlltempDirtmp
159internal/install/install_apply.goUpdateAgentFromDiscoveryos.RenametempFile, destFileagents
160internal/install/install_apply.goUpdateAgentFromDiscoveryos.WriteFiledestFileagents
161internal/install/install_apply.goinstallAgentFromDiscoveryInternalos.MkdirAllfilepath.Dir(destFile)agents
162internal/install/install_apply.goinstallAgentFromDiscoveryInternalos.WriteFiledestFileagents
163internal/install/install_apply.goinstallFromDiscoveryInternalos.MkdirAllworkDestsource-unmigrated
164internal/install/install_apply.goinstallFromDiscoveryInternalos.MkdirTemptmp
165internal/install/install_apply.goinstallFromDiscoveryInternalos.RemoveAlltempDirtmp
166internal/install/install_apply.goinstallFromGitSubdiros.MkdirTemptmp
167internal/install/install_apply.goinstallFromGitSubdiros.RemoveAlltempRepoPathtmp
168internal/install/install_apply.goinstallFromGitSubdiros.RemoveAlltempRepoPathtmp
169internal/install/install_apply.goinstallFromLocalos.MkdirAlldestPathsource-unmigrated
170internal/install/install_audit.gocleanEmptyInstallParentsos.Removediragents
171internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.MkdirTemptmp
172internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.RemoveAllrepoPathtmp
173internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.RemoveAllrepoPathtmp
174internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.RemoveAlltempDirtmp
175internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.RemoveAlltempDirtmp
176internal/install/install_discovery.godiscoverFromGitWithProgressImplos.MkdirTemptmp
177internal/install/install_git.goShallowCloneToTempos.MkdirTemptmp
178internal/install/install_update.gohandleUpdateos.MkdirTemptmp
179internal/install/install_update.gohandleUpdateos.RemoveAlltempDirtmp
180internal/install/install_update.goupdateRepoRootOrchestratoros.MkdirTemptmp
181internal/install/install_update.goupdateRepoRootOrchestratoros.RemoveAlltempDirtmp
182internal/install/lock.go(*Lock).Saveos.Removepathproject
183internal/install/lock.go(*Lock).Saveos.WriteFilepathproject
184internal/install/meta.goWriteMetaos.WriteFilemetaPathsource-unmigrated
185internal/install/metadata.go(*MetadataStore).Saveos.CreateTempdirsource-unmigrated
186internal/install/metadata.go(*MetadataStore).Saveos.MkdirAlldirsource-unmigrated
187internal/install/metadata.go(*MetadataStore).Saveos.RemovetmpNamesource-unmigrated
188internal/install/metadata.go(*MetadataStore).Saveos.RemovetmpNamesource-unmigrated
189internal/install/metadata.go(*MetadataStore).Saveos.RemovetmpNamesource-unmigrated
190internal/install/metadata.go(*MetadataStore).Saveos.RemovetmpNamesource-unmigrated
191internal/install/metadata.go(*MetadataStore).Saveos.RenametmpName, targetsource-unmigrated
192internal/install/metadata_migrate.gowalkAgentSidecarsos.RemovesidecarPathagents
193internal/install/metadata_migrate.gowalkSkillDiros.RemovesidecarPathsource-unmigrated
194internal/instructions/convert.goApplyos.Removec.Pathplugin
195internal/instructions/convert.goWriteFileos.MkdirAllfilepath.Dir(path)plugin
196internal/instructions/convert.goWriteFileos.WriteFilepathplugin
197internal/instructions/project.goApplyShimos.MkdirAllfilepath.Dir(own)plugin
198internal/instructions/project.goApplyShimos.Symlinkrel, ownplugin
199internal/mcp/backups.go(*Service).pruneBackupsos.Removefilepath.Join(dir, name)plugin
200internal/mcp/service.go(*Service).lockos.MkdirAlldirplugin
201internal/mcp/write.go(*Service).applyScopedos.RemovejournalPathplugin
202internal/mcp/write.go(*Service).applyScopedos.RemovejournalPathplugin
203internal/mcp/write.goatomicWriteos.CreateTempfilepath.Dir(path)plugin
204internal/mcp/write.goatomicWriteos.MkdirAllfilepath.Dir(path)plugin
205internal/mcp/write.goatomicWriteos.Removefile.Name()plugin
206internal/mcp/write.goatomicWriteos.Renamefile.Name(), pathplugin
207internal/memory/commit.gocommitNoteos.Renamedraft, pathextras
208internal/memory/commit.gocreateExclusiveos.OpenFilepathextras
209internal/memory/commit.gocreateExclusiveos.Removepathextras
210internal/memory/commit.goremoveNoteos.Removepathextras
211internal/memory/guidance_plan.gocommitGuidanceChangeos.MkdirAllfilepath.Dir(c.Path)plugin
212internal/memory/move.goMoveos.MkdirAllfilepath.Dir(destination)extras
213internal/memory/move.goMoveos.OpenFiledestinationextras
214internal/memory/move.goMoveos.Removedestinationextras
215internal/memory/move.goMoveos.Removesourceextras
216internal/memory/store.goWriteos.CreateTempfilepath.Dir(abs)extras
217internal/memory/store.goWriteos.MkdirAllfilepath.Dir(abs)extras
218internal/memory/store.goWriteos.Removetmp.Name()extras
219internal/oplog/oplog.goClearos.Truncatepathconfig
220internal/oplog/oplog.goWriteos.MkdirAlldirconfig
221internal/oplog/oplog.goWriteos.OpenFilefilepath.Join(dir, filename)config
222internal/oplog/oplog.gorewriteEntriesos.Createtmpconfig
223internal/oplog/oplog.gorewriteEntriesos.Removetmpconfig
224internal/oplog/oplog.gorewriteEntriesos.Removetmpconfig
225internal/oplog/oplog.gorewriteEntriesos.Removetmpconfig
226internal/oplog/oplog.gorewriteEntriesos.Removetmpconfig
227internal/oplog/oplog.gorewriteEntriesos.Renametmp, pathconfig
228internal/plugin/apply.go(*Service).applyChangeos.RemoveAllbackupplugin
229internal/plugin/apply.go(*Service).applyChangeos.RemoveAllfailedplugin
230internal/plugin/apply.go(*Service).applyChangeos.Renamebackup, pathplugin
231internal/plugin/apply.go(*Service).applyChangeos.Renamefailed, pathplugin
232internal/plugin/apply.go(*Service).applyChangeos.Renamepath, failedplugin
233internal/plugin/apply.go(*Service).materializeos.MkdirAllfilepath.Dir(p)plugin
234internal/plugin/apply.go(*Service).materializeos.MkdirAllparentplugin
235internal/plugin/apply.go(*Service).materializeos.MkdirTempparentplugin
236internal/plugin/apply.go(*Service).materializeos.RemoveAlltempplugin
237internal/plugin/apply.go(*Service).materializeos.Renamebackup, expectedplugin
238internal/plugin/apply.go(*Service).materializeos.Renameexpected, backupplugin
239internal/plugin/apply.go(*Service).materializeos.Renametemp, expectedplugin
240internal/plugin/apply.go(*Service).materializeos.WriteFilepplugin
241internal/plugin/config.go(*Service).saveos.CreateTempfilepath.Dir(path)plugin
242internal/plugin/config.go(*Service).saveos.MkdirAllfilepath.Dir(path)plugin
243internal/plugin/config.go(*Service).saveos.Removef.Name()plugin
244internal/plugin/config.go(*Service).saveos.Renamef.Name(), pathplugin
245internal/plugin/lifecycle.go(*Service).Applyos.MkdirAllfilepath.Dir(s.ConfigPath)plugin
246internal/plugin/local_bundle.go(*Service).applyLocalos.MkdirAllrootplugin
247internal/plugin/local_bundle.go(*Service).applyLocalos.MkdirTemprootplugin
248internal/plugin/local_bundle.go(*Service).applyLocalos.Removemarkerplugin
249internal/plugin/local_bundle.go(*Service).applyLocalos.RemoveAllbackupplugin
250internal/plugin/local_bundle.go(*Service).applyLocalos.RemoveAlldestplugin
251internal/plugin/local_bundle.go(*Service).applyLocalos.RemoveAlltempplugin
252internal/plugin/local_bundle.go(*Service).applyLocalos.Renamebackup, destplugin
253internal/plugin/local_bundle.go(*Service).applyLocalos.Renamedest, backupplugin
254internal/plugin/local_bundle.go(*Service).applyLocalos.Renametemp, destplugin
255internal/plugin/local_bundle.goatomicNativeWriteos.CreateTempfilepath.Dir(path)plugin
256internal/plugin/local_bundle.goatomicNativeWriteos.MkdirAllfilepath.Dir(path)plugin
257internal/plugin/local_bundle.goatomicNativeWriteos.Removef.Name()plugin
258internal/plugin/local_bundle.goatomicNativeWriteos.Renamef.Name(), pathplugin
259internal/plugin/omp_extensions_write.go(*Service).ApplyOMPExtensionsos.MkdirAllparentplugin
260internal/plugin/omp_extensions_yaml.go(*Service).ompBackupos.MkdirAlldirplugin
261internal/plugin/package_config.go(*Service).applyOpenCodeos.MkdirAllfilepath.Dir(path)plugin
262internal/plugin/pi_extensions_lock.go(*piNativeLock).releaseos.Removel.pathplugin
263internal/plugin/pi_extensions_lock.goacquirePiNativeLockos.Mkdirpathplugin
264internal/plugin/pi_extensions_lock.goacquirePiNativeLockos.Mkdirpathplugin
265internal/plugin/pi_extensions_write.go(*Service).lockPiSettingsos.MkdirAllfilepath.Dir(s.ConfigPath)plugin
266internal/plugin/pi_extensions_write.go(*Service).lockPiSettingsos.OpenFilepluginLockplugin
267internal/plugin/pi_extensions_write.go(*Service).lockPiSettingsos.RemovepluginLockplugin
268internal/plugin/pi_extensions_write.go(*Service).piBackupos.MkdirAlldirplugin
269internal/plugin/pi_extensions_write.go(*Service).piBackupos.Removerecordplugin
270internal/plugin/pi_registration_private_other.gomakePiRegistrationDiros.MkdirAllpathplugin
271internal/plugin/pi_registration_private_windows.gomakePiRegistrationDiros.MkdirAllfilepath.Dir(path)plugin
272internal/plugin/source.goacquireRefos.MkdirTempplugin
273internal/plugin/source.goacquireRefos.RemoveAllrootplugin
274internal/plugin/source.gocopyTreeos.MkdirAlltoplugin
275internal/plugin/source.gocopyTreeos.Symlinklink, toplugin
276internal/plugin/source.gocopyTreeos.WriteFiletoplugin
277internal/resource/agent.go(AgentKind).CreateLinkos.Symlinksrc, dsttarget
278internal/resource/skill.go(SkillKind).CreateLinkos.Symlinksrc, dsttarget
279internal/search/index.goreadIndexFromGitCloneos.RemoveAlldirtmp
280internal/search/preview.gofetchViaCloneos.RemoveAlldirtmp
281internal/server/handler_agentignore.go(*Server).handlePutAgentignoreos.MkdirAllresolvedagents
282internal/server/handler_agentignore.go(*Server).handlePutAgentignoreos.RemoveignorePathagents
283internal/server/handler_agentignore.go(*Server).handlePutAgentignoreos.WriteFileignorePathagents
284internal/server/handler_audit.go(*Server).handlePutAuditRulesos.MkdirAllfilepath.Dir(path)config
285internal/server/handler_audit.go(*Server).handlePutAuditRulesos.WriteFilepathconfig
286internal/server/handler_config.go(*Server).handlePutConfigos.WriteFilepathconfig
287internal/server/handler_create_skill.go(*Server).handleCreateSkillos.MkdirAlldirPathsource-unmigrated
288internal/server/handler_create_skill.go(*Server).handleCreateSkillos.MkdirAllskillDirsource-unmigrated
289internal/server/handler_create_skill.go(*Server).handleCreateSkillos.RemoveAllskillDirsource-unmigrated
290internal/server/handler_create_skill.go(*Server).handleCreateSkillos.RemoveAllskillDirsource-unmigrated
291internal/server/handler_create_skill.go(*Server).handleCreateSkillos.RemoveAllskillDirsource-unmigrated
292internal/server/handler_create_skill.go(*Server).handleCreateSkillos.WriteFilegitkeepsource-unmigrated
293internal/server/handler_create_skill.go(*Server).handleCreateSkillos.WriteFileskillFilesource-unmigrated
294internal/server/handler_extensions.go(*Server).handleExtensionsOpenos.MkdirAlldirplugin
295internal/server/handler_extensions.go(*Server).handleExtensionsRemoveos.RemoveAllpathplugin
296internal/server/handler_extras.go(*Server).handleExtrasCreateos.MkdirAllsourceDirextras
297internal/server/handler_skill_content.gowriteFileAtomicos.CreateTempdiragents
298internal/server/handler_skill_content.gowriteFileAtomicos.RemovetmpPathagents
299internal/server/handler_skill_content.gowriteFileAtomicos.RenametmpPath, pathagents
300internal/server/handler_skillignore.go(*Server).handlePutSkillignoreos.RemoveignorePathsource-unmigrated
301internal/server/handler_skillignore.go(*Server).handlePutSkillignoreos.WriteFileignorePathsource-unmigrated
302internal/server/handler_targets.go<package>os.Remove<ref>target
303internal/server/handler_targets.gocopySkillDiros.MkdirAlldstPathtarget
304internal/server/handler_targets.gocopySkillDiros.OpenFiledstPathtarget
305internal/server/handler_trash.go(*Server).handleDeleteTrashos.RemoveAllresolved.entry.Pathtrash
306internal/server/handler_trash.go(*Server).handleEmptyTrashos.RemoveAllitem.Pathtrash
307internal/skillignore/write.goAddPatternos.MkdirAllfilepath.Dir(filePath)source-unmigrated
308internal/skillignore/write.goAddPatternos.WriteFilefilePathsource-unmigrated
309internal/skillignore/write.goRemovePatternos.WriteFilefilePathsource-unmigrated
310internal/sourcefs/sourcefs.go(*Root).MoveInos.Renamesrc, filepath.Join(r.dir, name)sourcefs
311internal/sourcefs/sourcefs.go(*Root).moveInAnchoredos.RemoveAllsrcsourcefs
312internal/sourcefs/sourcefs.goCreateos.MkdirAlldirsourcefs
313internal/sync/agent_sync.goPruneOrphanAgentLinksos.Removefilepath.Join(targetDir, name)target
314internal/sync/agent_sync.goPullAgentos.RemoveAlldestPathagents
315internal/sync/agent_sync.goPullAgentos.WriteFiledestPathagents
316internal/sync/agent_sync.goPullAgentsos.MkdirAllsourcePathagents
317internal/sync/agent_sync.goSyncAgentsTransformos.MkdirAlltargetDirtarget
318internal/sync/agent_sync.goSyncAgentsTransformos.RemovetargetDirtarget
319internal/sync/agent_sync.goSyncAgentsTransformos.RemovetgtFiletarget
320internal/sync/agent_sync.goSyncAgentsTransformos.RemovetgtFiletarget
321internal/sync/agent_sync.goSyncAgentsTransformos.WriteFiletgtFiletarget
322internal/sync/agent_sync.gosyncAgentsCopyos.MkdirAlltargetDirtarget
323internal/sync/agent_sync.gosyncAgentsCopyos.RemovetargetPathtarget
324internal/sync/agent_sync.gosyncAgentsCopyos.WriteFiletargetPathtarget
325internal/sync/agent_sync.gosyncAgentsCopyos.WriteFiletargetPathtarget
326internal/sync/agent_sync.gosyncAgentsCopyos.WriteFiletargetPathtarget
327internal/sync/agent_sync.gosyncAgentsMergeos.MkdirAlltargetDirtarget
328internal/sync/agent_sync.gosyncAgentsMergeos.RemovetargetPathtarget
329internal/sync/agent_sync.gosyncAgentsMergeos.RemovetargetPathtarget
330internal/sync/agent_sync.gosyncAgentsMergeCopyos.MkdirAlltargetDirtarget
331internal/sync/agent_sync.gosyncAgentsMergeCopyos.RemovetargetPathtarget
332internal/sync/agent_sync.gosyncAgentsSymlinkos.MkdirAllfilepath.Dir(targetDir)target
333internal/sync/agent_sync.gosyncAgentsSymlinkos.RemovetargetDirtarget
334internal/sync/agent_sync.gosyncAgentsSymlinkos.RemoveAlltargetDirtarget
335internal/sync/copy.goPruneOrphanCopiesWithSkillsos.RemoveAllentryPathtarget
336internal/sync/copy.goSyncTargetCopyWithSkillsOptionsos.RemovetargetSkillPathtarget
337internal/sync/copy.goSyncTargetCopyWithSkillsOptionsos.RemoveAlltargetSkillPathtarget
338internal/sync/copy.goSyncTargetCopyWithSkillsOptionsos.RemoveAlltargetSkillPathtarget
339internal/sync/extension.gorunExtensionFileos.MkdirAllfilepath.Dir(tgtFile)target
340internal/sync/extension.gorunExtensionFileos.WriteFiletgtFiletarget
341internal/sync/extras.goCollectExtraFilesos.MkdirAllfilepath.Dir(destPath)extras
342internal/sync/extras.goCollectExtraFilesos.MkdirAllsourceDirextras
343internal/sync/extras.goCollectExtraFilesos.Removepathextras
344internal/sync/extras.goCollectExtraFilesos.WriteFiledestPathextras
345internal/sync/extras.gocleanEmptyParentsos.Removedirtarget
346internal/sync/extras.gopruneExtraManagedFilesos.Removepathtarget
347internal/sync/extras.gopruneExtraOrphansos.Removepathtarget
348internal/sync/extras.gopruneExtraSymlinkTargetos.RemovetargetPathtarget
349internal/sync/extras.gosyncExtraSymlinkModeos.MkdirAllfilepath.Dir(targetPath)target
350internal/sync/extras.gosyncExtraSymlinkModeos.RemovetargetPathtarget
351internal/sync/extras.gosyncExtraSymlinkModeos.RemoveAlltargetPathtarget
352internal/sync/extras.gosyncExtraTransformos.MkdirAllfilepath.Dir(tgtFile)target
353internal/sync/extras.gosyncExtraTransformos.RemovetgtFiletarget
354internal/sync/extras.gosyncExtraTransformos.RemoveAlltgtFiletarget
355internal/sync/extras.gosyncExtraTransformos.WriteFiletgtFiletarget
356internal/sync/extras.gosyncOneExtraFileos.MkdirAllfilepath.Dir(tgtFile)target
357internal/sync/extras.gosyncOneExtraFileos.RemovetgtFiletarget
358internal/sync/extras_backup.gobackupExtraDriftos.MkdirAlldirbackup
359internal/sync/extras_backup.gobackupExtraDriftos.WriteFilefilepath.Join(dir, name)backup
360internal/sync/extras_backup.goclearExtraAttachos.Removefilepath.Join(dir, name)backup
361internal/sync/extras_backup.goclearExtraImportBaseos.Removefilepath.Join(extraBackupDir(path), extraImportBase)backup
362internal/sync/extras_backup.goclearExtraWrittenos.Removefilepath.Join(extraBackupDir(path), extraWritten)backup
363internal/sync/extras_backup.gopruneExtraBackupsos.Removefilepath.Join(dir, names[0])backup
364internal/sync/extras_backup.goputBackExtraRestorePointos.Symlinkstring(dest), pathbackup
365internal/sync/extras_backup.goputBackExtraRestorePointos.WriteFilepathbackup
366internal/sync/extras_backup.gorecordExtraAttachos.MkdirAlldirbackup
367internal/sync/extras_backup.gorecordExtraAttachos.WriteFilefilepath.Join(dir, name)backup
368internal/sync/extras_backup.gorecordExtraImportBaseos.MkdirAlldirbackup
369internal/sync/extras_backup.gorecordExtraImportBaseos.WriteFilefilepath.Join(dir, extraImportBase)backup
370internal/sync/extras_backup.gorecordExtraWrittenos.WriteFilefilepath.Join(extraBackupDir(path), extraWritten)backup
371internal/sync/extras_backup.gostoreExtraBackupos.MkdirAlldirbackup
372internal/sync/extras_backup.gostoreExtraBackupos.WriteFilefilepath.Join(dir, name)backup
373internal/sync/extras_block.goapplyExtraBlockos.MkdirAllfilepath.Dir(f.Target)target
374internal/sync/extras_block.goapplyExtraBlockos.Removef.Targettarget
375internal/sync/extras_block.goapplyExtraBlockos.WriteFilef.Targettarget
376internal/sync/extras_block.gocollectExtraBlockos.WriteFilef.Sourceextras
377internal/sync/extras_block.gorestoreExtraBlockos.Removef.Targettarget
378internal/sync/extras_block.gorestoreExtraBlockos.WriteFilef.Targettarget
379internal/sync/extras_file.goCollectBackExtraFileos.MkdirAllfilepath.Dir(f.Source)extras
380internal/sync/extras_file.goCollectBackExtraFileos.WriteFilef.Sourceextras
381internal/sync/extras_file.goRestoreExtraTargetos.Removef.Targettarget
382internal/sync/extras_file.goRestoreExtraTargetos.Removef.Targettarget
383internal/sync/extras_file.goreplaceDriftedTargetos.Removef.Targettarget
384internal/sync/extras_file.gorestoreExtraImportos.Removef.Targettarget
385internal/sync/extras_file.gorestoreExtraImportos.Removef.Targettarget
386internal/sync/extras_file.gorestoreExtraImportos.WriteFilef.Targettarget
387internal/sync/extras_file.gosyncExtraFileReplaceos.MkdirAllfilepath.Dir(f.Target)target
388internal/sync/extras_file.gosyncExtraFileReplaceos.Removef.Targettarget
389internal/sync/extras_file.gosyncExtraFileReplaceos.Removef.Targettarget
390internal/sync/extras_file.gosyncExtraFileReplaceos.WriteFilef.Targettarget
391internal/sync/extras_file.gosyncExtraImportos.MkdirAllfilepath.Dir(f.Target)target
392internal/sync/extras_file.gosyncExtraImportos.Removef.Targettarget
393internal/sync/extras_file.gosyncExtraImportos.WriteFilef.Targettarget
394internal/sync/file_backups.goRestoreFileBackupos.MkdirAllfilepath.Dir(path)target
395internal/sync/file_backups.goRestoreFileBackupos.MkdirAllfilepath.Dir(path)target
396internal/sync/file_backups.goRestoreFileBackupos.Removepathtarget
397internal/sync/file_backups.goRestoreFileBackupos.Removepathtarget
398internal/sync/file_backups.goRestoreFileBackupos.Removepathtarget
399internal/sync/file_backups.goRestoreFileBackupos.Symlinkv.LinkTo, pathtarget
400internal/sync/file_backups.goRestoreFileBackupos.WriteFilepathtarget
401internal/sync/filelink.go(*copyTracker).pruneOrphansos.Removefilepath.Join(t.dir, rel)target
402internal/sync/manifest.goRemoveManifestos.Removefilepath.Join(targetPath, ManifestFile)target
403internal/sync/manifest.goWriteManifestos.WriteFilefilepath.Join(targetPath, ManifestFile)target
404internal/sync/pull.goPullSkillos.RemoveAlldestPathsource-unmigrated
405internal/sync/relative.goreformatLinkos.RemovelinkPathtarget
406internal/sync/relative.goreformatLinkos.RemovetmpPathtarget
407internal/sync/relative.goreformatLinkos.RemovetmpPathtarget
408internal/sync/relative.goreformatLinkos.RenametmpPath, linkPathtarget
409internal/sync/skill_run.goSyncSkillTargetos.Removesc.Pathtarget
410internal/sync/skills_off.goDetachSkillsos.RemoveentryPathtarget
411internal/sync/skills_off.goDetachSkillsos.Removefoldertarget
412internal/sync/symlink_unix.gocreateLinkos.Symlinktarget, linkPathtarget
413internal/sync/symlink_windows.gocanCreateRelativeLinkos.Mkdirtargettmp
414internal/sync/symlink_windows.gocanCreateRelativeLinkos.MkdirTemptmp
415internal/sync/symlink_windows.gocanCreateRelativeLinkos.RemoveAlldirtmp
416internal/sync/symlink_windows.gocreateLinkos.SymlinkabsSource, absTargettarget
417internal/sync/symlink_windows.gocreateLinkos.SymlinkabsSource, absTargettarget
418internal/sync/symlink_windows.gocreateLinkos.Symlinkrel, linkPathtarget
419internal/sync/symlink_windows.goplatformCanCreateFileLinkos.MkdirTemptmp
420internal/sync/symlink_windows.goplatformCanCreateFileLinkos.RemoveAlldirtmp
421internal/sync/symlink_windows.goplatformCanCreateFileLinkos.WriteFiletargettmp
422internal/sync/sync.goCreateSymlinkos.MkdirAllfilepath.Dir(targetPath)target
423internal/sync/sync.goMigrateToSourceos.MkdirAllfilepath.Dir(sourcePath)source-unmigrated
424internal/sync/sync.goMigrateToSourceos.RemoveAlltargetPathtarget
425internal/sync/sync.goMigrateToSourceos.RemoveAlltargetPathtarget
426internal/sync/sync.goMigrateToSourceos.RenametargetPath, sourcePathsource-unmigrated
427internal/sync/sync.goPruneOrphanLinksWithSkillsos.RemoveAllentryPathtarget
428internal/sync/sync.goSyncTargetos.Removesc.Pathtarget
429internal/sync/sync.goSyncTargetMergeWithSkillsos.RemovetargetSkillPathtarget
430internal/sync/sync.goSyncTargetMergeWithSkillsos.RemoveAlltargetSkillPathtarget
431internal/sync/sync.gocopyDirectoryWithStateos.MkdirAlldstPathsource-unmigrated
432internal/sync/sync.gocopyFileos.OpenFiledstsource-unmigrated
433internal/sync/sync.goensureRealTargetDiros.MkdirAlltargetPathtarget
434internal/sync/sync.goensureRealTargetDiros.MkdirAlltargetPathtarget
435internal/sync/sync.goensureRealTargetDiros.RemovetargetPathtarget
436internal/sync/sync.gomergeDirectoriesos.MkdirAlldstPathsource-unmigrated
437internal/sync/target_naming_migration.goselectActiveTargetNameForSyncos.RenamelegacyPath, desiredPathtarget
438internal/testutil/git_helpers.goSeedRemoteBranchos.MkdirAllfilepath.Dir(full)test-helper
439internal/testutil/git_helpers.goSeedRemoteBranchos.WriteFilefulltest-helper
440internal/testutil/testutil.go(*Sandbox).CreateNestedSkillos.MkdirAllskillDirtest-helper
441internal/testutil/testutil.go(*Sandbox).CreateNestedSkillos.WriteFilepathtest-helper
442internal/testutil/testutil.go(*Sandbox).CreateProjectSkillos.MkdirAllskillDirtest-helper
443internal/testutil/testutil.go(*Sandbox).CreateProjectSkillos.WriteFilepathtest-helper
444internal/testutil/testutil.go(*Sandbox).CreateSkillos.MkdirAllskillDirtest-helper
445internal/testutil/testutil.go(*Sandbox).CreateSkillos.WriteFilepathtest-helper
446internal/testutil/testutil.go(*Sandbox).CreateSymlinkos.MkdirAlldirtest-helper
447internal/testutil/testutil.go(*Sandbox).CreateSymlinkos.Symlinktarget, linktest-helper
448internal/testutil/testutil.go(*Sandbox).CreateTargetos.MkdirAllpathtest-helper
449internal/testutil/testutil.go(*Sandbox).SetupProjectDiros.MkdirAlldirtest-helper
450internal/testutil/testutil.go(*Sandbox).SetupProjectDiros.MkdirAllfilepath.Join(projectRoot, p)test-helper
451internal/testutil/testutil.go(*Sandbox).WriteConfigos.MkdirAlldirtest-helper
452internal/testutil/testutil.go(*Sandbox).WriteConfigos.WriteFilesb.ConfigPathtest-helper
453internal/testutil/testutil.go(*Sandbox).WriteFileos.MkdirAlldirtest-helper
454internal/testutil/testutil.go(*Sandbox).WriteFileos.WriteFilepathtest-helper
455internal/testutil/testutil.go(*Sandbox).WriteProjectConfigos.MkdirAlldirtest-helper
456internal/testutil/testutil.go(*Sandbox).WriteProjectConfigos.WriteFilepathtest-helper
457internal/testutil/testutil.goNewSandboxos.MkdirAlldirtest-helper
458internal/trash/trash.goCleanupos.RemoveAllitem.Pathtrash
459internal/trash/trash.goMoveAgentToTrashos.MkdirAlltrashDirtrash
460internal/trash/trash.goMoveAgentToTrashos.RemoveagentFileagents
461internal/trash/trash.goMoveAgentToTrashos.RemovemetaFileagents
462internal/trash/trash.goMoveAgentToTrashos.RenameagentFile, destFileagents
463internal/trash/trash.goMoveAgentToTrashos.RenamemetaFile, destMetaagents
464internal/trash/trash.goMoveAgentToTrashos.WriteFiledestFiletrash
465internal/trash/trash.goMoveAgentToTrashos.WriteFiledestMetatrash
466internal/trash/trash.goMoveToTrashos.Rename<ref>source-checked
467internal/trash/trash.goRestoreos.Rename<ref>source-unmigrated
468internal/trash/trash.goRestoreAgentos.MkdirAlltargetDiragents
469internal/trash/trash.goRestoreAgentos.RemoveAllentry.Pathtrash
470internal/trash/trash.goRestoreAgentos.RenamesrcPath, destPathagents
471internal/trash/trash.goRestoreAgentos.WriteFiledestPathagents
472internal/trash/trash.gocleanEmptyParentsos.Removedirtrash
473internal/trash/trash.gocopyDiros.MkdirAlldstsource-unmigrated
474internal/trash/trash.gocopyFileos.OpenFiledstsource-unmigrated
475internal/trash/trash.gomoveLinkos.Removedstsource-unmigrated
476internal/trash/trash.gomoveLinkos.Removesrcsource-checked
477internal/trash/trash.gomoveToTrashos.MkdirAllfilepath.Dir(trashPath)trash
478internal/trash/trash.gomoveToTrashos.RemoveAllsrcPathsource-checked
479internal/trash/trash.gorecreateLinkos.Symlinktarget, dstsource-unmigrated
480internal/trash/trash.gorestoreos.RemoveAllentry.Pathtrash
481internal/uidist/uidist.goClearCacheos.RemoveAlldirconfig
482internal/uidist/uidist.goClearVersionos.RemoveAlldirconfig
483internal/uidist/uidist.goDownloados.MkdirAlldirconfig
484internal/uidist/uidist.goDownloados.RemovetmpFileconfig
485internal/uidist/uidist.goDownloados.RemoveAlldirconfig
486internal/uidist/uidist.gocleanOldVersionsos.RemoveAllfilepath.Join(uiDir, e.Name())config
487internal/uidist/uidist.godownloadToTempos.CreateTempconfig
488internal/uidist/uidist.godownloadToTempos.Removetmp.Name()config
489internal/uidist/uidist.goextractTarGzos.MkdirAllfilepath.Dir(target)config
490internal/uidist/uidist.goextractTarGzos.MkdirAlltargetconfig
491internal/uidist/uidist.goextractTarGzos.OpenFiletargetconfig
492internal/utils/frontmatter_write.goSetFrontmatterListos.WriteFilefilePathsource-unmigrated
493internal/utils/frontmatter_write.goToggleFrontmatterFlagos.WriteFilefilePathsource-unmigrated
494internal/utils/frontmatter_write.goToggleFrontmatterFlagos.WriteFilefilePathsource-unmigrated
495internal/utils/link_windows.goCreateJunctionos.MkdirlinkPathsource-unmigrated
496internal/utils/link_windows.goCreateJunctionos.RemovelinkPathsource-unmigrated
497internal/version/check.goClearCacheos.RemovegetCachePath()config
498internal/version/check.gocleanupLegacyCacheos.RemovelegacyPathconfig
499internal/version/check.gocleanupLegacyCacheos.RemoveparentDirconfig
500internal/version/check.gosaveCacheAtos.MkdirAllfilepath.Dir(cachePath)config
501internal/version/check.gosaveCacheAtos.WriteFilecachePathconfig