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

Method _containsInvalidSuffixes

lib/ldp.mjs:324–326  ·  view source on GitHub ↗

* This function is used to make sure a resource or container which contains * reserved suffixes for auxiliary documents cannot be created. * @param {string} path - the uri to check for invalid suffixes * @returns {boolean} true is fail - if the path contains reserved suffixes

(path)

Source from the content-addressed store, hash-verified

322 * @returns {boolean} true is fail - if the path contains reserved suffixes
323 */
324 _containsInvalidSuffixes (path) {
325 return AUXILIARY_RESOURCES.some(suffix => path.endsWith(suffix + '/'))
326 }
327
328 // check whether a document (or container) has the same name as another document (or container)
329 async checkItemName (url) {

Callers 2

postMethod · 0.95
checkItemNameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected