Skip to main content
Glama
sayedpfe

MCP & Copilot Studio Learning Project

by sayedpfe
readdir-or-error.js655 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.readdirOrErrorSync = exports.readdirOrError = void 0; // returns an array of entries if readdir() works, // or the error that readdir() raised if not. const fs_js_1 = require("./fs.js"); const { readdir } = fs_js_1.promises; const readdirOrError = (path) => readdir(path).catch(er => er); exports.readdirOrError = readdirOrError; const readdirOrErrorSync = (path) => { try { return (0, fs_js_1.readdirSync)(path); } catch (er) { return er; } }; exports.readdirOrErrorSync = readdirOrErrorSync; //# sourceMappingURL=readdir-or-error.js.map

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sayedpfe/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server