From 5f8dcc9ec19377d6444404ea126189351b56b1a0 Mon Sep 17 00:00:00 2001
From: Őry Máté <ory.mate@cloud.bme.hu>
Date: Wed, 26 Feb 2014 23:31:25 +0100
Subject: [PATCH] storage: use os.path.join instead concatenation

---
 circle/storage/models.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/circle/storage/models.py b/circle/storage/models.py
index 63a13b3..38144a5 100644
--- a/circle/storage/models.py
+++ b/circle/storage/models.py
@@ -2,6 +2,7 @@
 
 from contextlib import contextmanager
 import logging
+from os.path import join
 import uuid
 
 from django.db.models import (Model, BooleanField, CharField, DateTimeField,
@@ -108,7 +109,7 @@ class Disk(AclBase, TimeStampedModel):
     @property
     def path(self):
         """Get the path where the files are stored."""
-        return self.datastore.path + '/' + self.filename
+        return join(self.datastore.path, self.filename)
 
     @property
     def format(self):
--
libgit2 0.26.0