1# http://pyrocko.org - GPLv3 

2# 

3# The Pyrocko Developers, 21st Century 

4# ---|P------/S----------~Lg---------- 

5 

6from pyrocko import gf 

7from .error import CannotCreatePath 

8 

9 

10def remake_dir(dpath, force): 

11 try: 

12 return gf.store.remake_dir(dpath, force) 

13 

14 except gf.CannotCreate as e: 

15 raise CannotCreatePath(str(e))