MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / createFile

Function createFile

scripts/generateSubPackage.ts:121–124  ·  view source on GitHub ↗
(file: string, content: string)

Source from the content-addressed store, hash-verified

119 .filter(source => fs.lstatSync(source).isDirectory())
120
121const createFile = (file: string, content: string) => {
122 shell.touch(file)
123 shell.ShellString(content).to(file)
124}
125
126if (packageName === '') {
127 throw new Error('Package name can not be empty')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…