From a3cb1f9428fd8a7f1bc6f60985b59dad732dea5c Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 29 Sep 2018 16:15:44 +0200 Subject: [PATCH] clean temporary directory used for comparing --- dotdrop/dotdrop.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index ebe4526..d0f4740 100644 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -395,10 +395,8 @@ def main(): opts['dopts'] = args['--dopts'] ret = compare(opts, conf, tmp, focus=args['--file'], ignore=args['--ignore']) - if os.listdir(tmp): - LOG.raw('\ntemporary files available under {}'.format(tmp)) - else: - os.rmdir(tmp) + # clean tmp directory + remove(tmp) elif args['import']: # import dotfile(s)