Commit 5f8dcc9e by Őry Máté

storage: use os.path.join instead concatenation

parent b8eff33b
......@@ -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):
......
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 sign in to comment