MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / createFile

Function createFile

packages/hardhat-utils/src/fs.ts:991–993  ·  view source on GitHub ↗
(absolutePath: string)

Source from the content-addressed store, hash-verified

989 * @throws FileSystemAccessError for any other error.
990 */
991export async function createFile(absolutePath: string): Promise<void> {
992 await writeUtf8File(absolutePath, "");
993}
994
995/**
996 * Empties a directory by recursively removing all its content. If the

Callers 5

init.tsFile · 0.90
build-system.tsFile · 0.90
fs.tsFile · 0.85
package.tsFile · 0.85

Calls 1

writeUtf8FileFunction · 0.85

Tested by

no test coverage detected