MCPcopy
hub / github.com/pingcap/docs-cn / writeFileSync

Function writeFileSync

scripts/utils.js:110–114  ·  view source on GitHub ↗
(destPath, fileContent)

Source from the content-addressed store, hash-verified

108};
109
110export const writeFileSync = (destPath, fileContent) => {
111 checkDestDir(destPath);
112
113 fs.writeFileSync(destPath, fileContent);
114};
115
116const getMds = (src) => {
117 return glob.sync(src + "/**/*.md", {

Callers 1

Calls 1

checkDestDirFunction · 0.85

Tested by

no test coverage detected