Commit a564d4d9 by David Baumgold

Ensure that mongo modulestore can create its data directory if it does not exist on disk

parent 0f0b2622
......@@ -484,8 +484,7 @@ class MongoModuleStore(ModuleStoreWriteBase):
data_dir = getattr(item, 'data_dir', location.course)
root = self.fs_root / data_dir
if not root.isdir():
root.mkdir()
root.makedirs_p() # create directory if it doesn't exist
resource_fs = OSFS(root)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment