mirror of https://github.com/scrapy/scrapy.git
we ok with existing directories
This commit is contained in:
parent
c4b9c8cd56
commit
6918204359
|
|
@ -20,7 +20,7 @@ def _with_mkdir(queue_class):
|
|||
def __init__(self, path, *args, **kwargs):
|
||||
dirname = os.path.dirname(path)
|
||||
if not os.path.exists(dirname):
|
||||
os.makedirs(dirname)
|
||||
os.makedirs(dirname, exist_ok=True)
|
||||
|
||||
super(DirectoriesCreated, self).__init__(path, *args, **kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue