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

Function createNewIndexAcl

bin/lib/invalidUsernames.mjs:59–65  ·  view source on GitHub ↗
(userDirectory)

Source from the content-addressed store, hash-verified

57}
58
59function createNewIndexAcl (userDirectory) {
60 const currentIndexAcl = path.join(userDirectory, 'index.html.acl')
61 const backupIndexAcl = path.join(userDirectory, 'index.backup.html.acl')
62 const currentIndexSource = fs.readFileSync(currentIndexAcl, 'utf-8')
63 const backupIndexSource = currentIndexSource.replace(/index.html/g, 'index.backup.html')
64 fs.writeFileSync(backupIndexAcl, backupIndexSource, 'utf-8')
65}
66
67async function deleteUsers (usernames, accountManager, config, host) {
68 const oidcManager = fromServerConfig({ ...config, host })

Callers 1

backupIndexFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected