Commit 20d78c45 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

overwrite stackmax directory if --force

parent 35ec3924
......@@ -2,6 +2,7 @@ import sys
import os
import logging
import os.path as op
import shutil
import numpy as num
......@@ -26,6 +27,8 @@ def scan(
if op.exists(config.detections_path):
if force:
os.unlink(config.detections_path)
shutil.rmtree('stackmax')
os.mkdir('stackmax')
else:
raise common.LassieError(
'detections file already exists: %s' % config.detections_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment