* Ensures the directory for an agent location exists
( source: SettingSource, )
| 152 | * Ensures the directory for an agent location exists |
| 153 | */ |
| 154 | async function ensureAgentDirectoryExists( |
| 155 | source: SettingSource, |
| 156 | ): Promise<string> { |
| 157 | const dirPath = getAgentDirectoryPath(source) |
| 158 | await mkdir(dirPath, { recursive: true }) |
| 159 | return dirPath |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Saves an agent to the filesystem |
no test coverage detected