1# http://pyrocko.org - GPLv3
2#
3# The Pyrocko Developers, 21st Century
4# ---|P------/S----------~Lg----------
6from pyrocko import gf
7from .error import CannotCreatePath
10def remake_dir(dpath, force):
11 try:
12 return gf.store.remake_dir(dpath, force)
14 except gf.CannotCreate as e:
15 raise CannotCreatePath(str(e))