This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf/md_pdf/utils.py

10 lines
148 B
Python

import shutil
import os
def remove_dir(dir):
try:
shutil.rmtree(dir)
os.rmdir(dir)
except FileNotFoundError:
pass