We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf450b commit a526794Copy full SHA for a526794
niworkflows/interfaces/bids.py
@@ -773,7 +773,7 @@ def _run_interface(self, runtime):
773
774
if self.inputs.metadata:
775
sidecar = out_file.parent / f"{out_file.name.split('.', 1)[0]}.json"
776
- unlink(sidecar, missing_ok=True)
+ sidecar.unlink(missing_ok=True)
777
sidecar.write_text(dumps(self.inputs.metadata, indent=2))
778
self._results["out_meta"].append(str(sidecar))
779
self._results["out_file"].append(str(out_file))
0 commit comments