MCPcopy
hub / github.com/b-nnett/codex-plusplus / remove

Method remove

packages/installer/assets/runtime/main.js:1138–1153  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

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)

Callers 15

syncPagesGroupFunction · 0.80
syncCodexNativeNavActiveFunction · 0.80
applyNavActiveFunction · 0.80
showStoreCardMessageFunction · 0.80
storeAvatarFunction · 0.80
showStoreToastFunction · 0.80
tweakRowFunction · 0.80
openPublishTweakDialogFunction · 0.80
_removeMethod · 0.80
_closePathMethod · 0.80
syncPagesGroupFunction · 0.80

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected