cc-4652: Added code to create the stor/ structure before adding any watched
This commit is contained in:
parent
176f2c45ba
commit
bf363dcdde
1 changed files with 6 additions and 0 deletions
|
@ -202,6 +202,12 @@ class Manager(Loggable):
|
||||||
organize.
|
organize.
|
||||||
"""
|
"""
|
||||||
store_paths = mmp.expand_storage(store)
|
store_paths = mmp.expand_storage(store)
|
||||||
|
# First attempt to make sure that all paths exist before adding any
|
||||||
|
# watches
|
||||||
|
for path_type, path in store_paths.iteritems():
|
||||||
|
try: mmp.create_dir(path)
|
||||||
|
except mmp.FailedToCreateDir as e: self.unexpected_exception(e)
|
||||||
|
|
||||||
self.set_problem_files_path(store_paths['problem_files'])
|
self.set_problem_files_path(store_paths['problem_files'])
|
||||||
self.set_imported_path(store_paths['imported'])
|
self.set_imported_path(store_paths['imported'])
|
||||||
self.set_recorded_path(store_paths['recorded'])
|
self.set_recorded_path(store_paths['recorded'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue