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

Function createNewIndex

bin/lib/invalidUsernames.mjs:50–57  ·  view source on GitHub ↗
(username, invalidUsernameTemplate, dateOfRemoval, supportEmail, currentIndex)

Source from the content-addressed store, hash-verified

48}
49
50function createNewIndex (username, invalidUsernameTemplate, dateOfRemoval, supportEmail, currentIndex) {
51 const newIndexSource = invalidUsernameTemplate({
52 username,
53 dateOfRemoval,
54 supportEmail
55 })
56 fs.writeFileSync(currentIndex, newIndexSource, 'utf-8')
57}
58
59function createNewIndexAcl (userDirectory) {
60 const currentIndexAcl = path.join(userDirectory, 'index.html.acl')

Callers 1

backupIndexFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected