Commit 35519108 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

added functions to remove files/directory

parent 8447342a
import glob
import os
import shutil
def remove_files(fmt=""):
""" Remove files matching the specified format. """
for fp in glob.glob(fmt):
os.remove(fp)
def remove_dir(path=""):
""" Remove the specified directory. """
shutil.rmtree(path)
Supports Markdown
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