From 703bf153c589447de1ffe4597ba2cf551280fb41 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 7 Nov 2014 11:37:45 +0100 Subject: [PATCH] ensure temp dir exists --- webservice/bam/application/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webservice/bam/application/__init__.py b/webservice/bam/application/__init__.py index 885db1b..2f98108 100644 --- a/webservice/bam/application/__init__.py +++ b/webservice/bam/application/__init__.py @@ -222,6 +222,8 @@ class FileAPI(Resource): file = request.files['file'] if file and self.allowed_file(file.filename): + os.makedirs(project.upload_path, exist_ok=True) + local_client = svn.local.LocalClient(project.repository_path) # TODO, add the merge operation to a queue. Later on, the request could stop here # and all the next steps could be done in another loop, or triggered again via