1# http://pyrocko.org - GPLv3 

2# 

3# The Pyrocko Developers, 21st Century 

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

5from __future__ import absolute_import, division, print_function 

6 

7from pyrocko import gf 

8from .error import CannotCreatePath 

9 

10 

11def remake_dir(dpath, force): 

12 try: 

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

14 

15 except gf.CannotCreate as e: 

16 raise CannotCreatePath(str(e))