README added

This commit is contained in:
Renzo Meister
2018-11-06 18:00:01 +01:00
parent 925887b4a4
commit 7106bebf24
2 changed files with 81 additions and 6 deletions

View File

@@ -32,11 +32,9 @@ if __name__ == "__main__":
_logger.error('Source folder %s not found!', args.src)
exit(1)
if os.path.exists(args.dest):
_logger.debug('Removing destination folder %s', args.dest)
shutil.rmtree(args.dest)
_logger.debug('Creating destination folder %s', args.dest)
os.mkdir(args.dest)
if not os.path.exists(args.dest):
_logger.debug('Creating destination folder %s', args.dest)
os.mkdir(args.dest)
repo_src_path = os.path.abspath(args.src)
repo_dst_path = os.path.abspath(args.dest)