* 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)
| 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) { |
no outgoing calls
no test coverage detected