Commit ac4caf0b by David Baumgold

Merge pull request #2969 from edx/db/fix-mkdir-error

Mongo modulestore: create data dir
parents 31b64ad5 a564d4d9
......@@ -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