Loading csst_common/utils/_io.py 0 → 100644 +18 −0 Original line number Diff line number Diff line 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) Loading
csst_common/utils/_io.py 0 → 100644 +18 −0 Original line number Diff line number Diff line 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)