MCPcopy Create free account
hub / github.com/openai/plugins / lstatTarget

Function lstatTarget

plugins/openai-developers/scripts/openai-platform-api-key.mjs:165–174  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

163}
164
165function lstatTarget(filePath) {
166 try {
167 return fs.lstatSync(filePath);
168 } catch (error) {
169 if (error.code === "ENOENT") {
170 return null;
171 }
172 fail(`Failed to inspect target env file: ${error.message}`);
173 }
174}
175
176function validateTargetFileType(filePath, stat) {
177 if (stat == null) {

Callers 1

upsertEnvValueFunction · 0.85

Calls 1

failFunction · 0.85

Tested by

no test coverage detected