({ use = true } = {})
| 114 | } |
| 115 | |
| 116 | allow ({ use = true } = {}) { |
| 117 | if (use) { |
| 118 | this.use() |
| 119 | } |
| 120 | // Allow a previously ignored directory but ignore everything inside |
| 121 | return [ |
| 122 | ...this.allowContents({ use: false, isDirectory: true }), |
| 123 | `/${this.used.join('/')}/*`, |
| 124 | ] |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | const gatherAllows = (pathParts, usedParts) => { |
no test coverage detected