KBNLresearch / omSipCreator

Create ingest-ready SIPs from batches of optical media images
Apache License 2.0
7 stars 0 forks source link

Overwriting existing SIP always results in error at first try (but then works on 2nd) #28

Closed bitsgalore closed 7 years ago

bitsgalore commented 7 years ago

Example:

E:\testiromlab>c:\python36\python f:\johan\pythonCode\omSipCreator\omSipCreator\
omSipCreator.py write kb-c91bbfda-147a-11e7-93d2-00237d497a29 test6
This will overwrite existing directory 'test6' and remove its contents!
Do you really want to proceed (Y/N)? > y
CRITICAL - cannot remove 'test6'
INFO - Batch verification yielded 1 errors and 0 warnings

Then on 2nd try:

E:\testiromlab>c:\python36\python f:\johan\pythonCode\omSipCreator\omSipCreator\
omSipCreator.py write kb-c91bbfda-147a-11e7-93d2-00237d497a29 test6
This will overwrite existing directory 'test6' and remove its contents!
Do you really want to proceed (Y/N)? > y
INFO - Processing PPN 155658050
INFO - creating SIP directory
INFO - creating carrier directory
INFO - copying files to carrier directory
INFO - creating carrier directory
INFO - copying files to carrier directory
INFO - writing METS file
INFO - Verify / write resulted in 0 errors and 0 warnings
bitsgalore commented 7 years ago

Doesn't seem to happen anymore so closing this issue.