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

Function isDirectory

plugins/plugin-eval/src/lib/files.js:55–62  ·  view source on GitHub ↗
(targetPath)

Source from the content-addressed store, hash-verified

53}
54
55export async function isDirectory(targetPath) {
56 try {
57 const stats = await fs.stat(targetPath);
58 return stats.isDirectory();
59 } catch {
60 return false;
61 }
62}
63
64export async function isFile(targetPath) {
65 try {

Callers 4

discoverSkillDirsFunction · 0.90
resolveTargetFunction · 0.90

Calls 1

statMethod · 0.80

Tested by

no test coverage detected