MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / copyTemplateDir

Function copyTemplateDir

lib/common/fs-utils.mjs:3–10  ·  view source on GitHub ↗
(templatePath, targetPath)

Source from the content-addressed store, hash-verified

1import fs from 'fs-extra'
2
3export async function copyTemplateDir (templatePath, targetPath) {
4 return new Promise((resolve, reject) => {
5 fs.copy(templatePath, targetPath, (error) => {
6 if (error) { return reject(error) }
7 resolve()
8 })
9 })
10}
11
12export async function processFile (filePath, manipulateSourceFn) {
13 return new Promise((resolve, reject) => {

Callers 1

ensureWelcomePageFunction · 0.90

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected