Commit 5f8dcc9e by Őry Máté

storage: use os.path.join instead concatenation

parent b8eff33b
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
from contextlib import contextmanager from contextlib import contextmanager
import logging import logging
from os.path import join
import uuid import uuid
from django.db.models import (Model, BooleanField, CharField, DateTimeField, from django.db.models import (Model, BooleanField, CharField, DateTimeField,
...@@ -108,7 +109,7 @@ class Disk(AclBase, TimeStampedModel): ...@@ -108,7 +109,7 @@ class Disk(AclBase, TimeStampedModel):
@property @property
def path(self): def path(self):
"""Get the path where the files are stored.""" """Get the path where the files are stored."""
return self.datastore.path + '/' + self.filename return join(self.datastore.path, self.filename)
@property @property
def format(self): 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