-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Request command line option to abort on file overwrite #276
Labels
Comments
neurolabusc
added a commit
that referenced
this issue
Feb 27, 2019
Can you test the latest developmental commit? It includes the feature you request.
I do have a few comments:
|
@neurolabusc Thank you for this. I'll test during my next data migration over the next month. |
yarikoptic
added a commit
to neurodebian/dcm2niix
that referenced
this issue
May 6, 2020
* tag 'v1.0.20190410': (52 commits) Update dcm_qa submodule. Prevent MSVC compilation warnings Siemens PASL 3D BIDS tags (http://adni.loni.usc.edu/wp-content/uploads/2010/05/ADNI3_Basic_Siemens_Skyra_E11.pdf) Reduce Microsoft Visual Studio 14 warnings (rordenlab#288) Use fgets not getline (rordenlab#288) Fixes (rordenlab#286; rordenlab#287) Added missing space (coding standard). Supported dicom tag Accession Number (0008,0050). Struct TDICOMdata extended with accessionNumber property, modified dicom loader and supported exporting accession number into json file and using it as filename with %g modifier. Terminate when corrupted DICOM detected (rordenlab#283) Keep more characters for institution address (VR is ST) "dcm2niix -v" returns version (rordenlab#280) NRRD export supports oldmin/oldmax (http://teem.sourceforge.net/nrrd/format.html#oldmin) Assume 1.2.840.10008.1.2 if transfer syntax is empty Option to modify overwrite behavior (rordenlab#276) XA11 classic DICOM uses private tags for DWI (rordenlab#274) Detect Philips when manufacturer (0008,0070) has been erased (rordenlab#267) Detect discrepancies in PAR/REC slice thicknesses (rordenlab#273) New "-x i" option (https://www.nitrc.org/forum/forum.php?thread_id=9324&forum_id=4703) bvecs for Philips DWI using 0019,10bb, 0019,10bc Adjust negative MosaicRefAcqTimes (rordenlab#271) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are times when the same dcm2niix command may accidentally be run for the same inputs/outputs.
It would be nice if dcm2niix had a command line option to simply abort if the action would result in overwriting an existing file of the same name.
Currently I write the file to a temporary location, use bash to see if the file exists in the final location, and then move or delete the temporary files.
Thank you for your consideration.
The text was updated successfully, but these errors were encountered: