Merge pull request #2969 from edx/db/fix-mkdir-error
Mongo modulestore: create data dir
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user