MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / _readParseFile

Method _readParseFile

apps/web/services/slack/file/index.ts:29–32  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

27 }
28
29 _readParseFile(filename: string) {
30 const data = fs.readFileSync(this.filesPath + '/' + filename, 'utf8');
31 return JSON.parse(data);
32 }
33
34 _listFiles(channelName: string) {
35 return fs.readdirSync(this.filesPath + '/' + channelName + '/', 'utf8');

Callers 1

SlackFileAdapterClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected