MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / createFile

Function createFile

packages/cli-v3/src/utilities/fileSystem.ts:8–13  ·  view source on GitHub ↗
(path: string, contents: string)

Source from the content-addressed store, hash-verified

6
7// Creates a file at the given path, if the directory doesn't exist it will be created
8export async function createFile(path: string, contents: string): Promise<string> {
9 await fsModule.mkdir(pathModule.dirname(path), { recursive: true });
10 await fsModule.writeFile(path, contents);
11
12 return path;
13}
14
15export function isDirectory(configPath: string) {
16 try {

Callers 2

createTriggerDirFunction · 0.90
gitIgnoreDotTriggerDirFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…