(item)
| 1136 | items.add(item); |
| 1137 | } |
| 1138 | async remove(item) { |
| 1139 | const { items } = this; |
| 1140 | if (!items) |
| 1141 | return; |
| 1142 | items.delete(item); |
| 1143 | if (items.size > 0) |
| 1144 | return; |
| 1145 | const dir = this.path; |
| 1146 | try { |
| 1147 | await (0, import_promises3.readdir)(dir); |
| 1148 | } catch (err) { |
| 1149 | if (this._removeWatcher) { |
| 1150 | this._removeWatcher(sysPath2.dirname(dir), sysPath2.basename(dir)); |
| 1151 | } |
| 1152 | } |
| 1153 | } |
| 1154 | has(item) { |
| 1155 | const { items } = this; |
| 1156 | if (!items) |
no test coverage detected