add upload/download functions

master
Eugen Ciur 2020-12-25 09:57:36 +01:00
parent 25e973ff79
commit 40f95466c8
1 changed files with 7 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class Storage:
on local host filesystem
"""
def __init__(self, location=None):
def __init__(self, location=None, **kwargs):
# by default, this will be something like
# settings.MEDIA_ROOT
self._location = location
@ -27,6 +27,12 @@ class Storage:
def location(self):
return self._location
def upload(self, doc_path, **kwargs):
pass
def download(self, doc_path, **kwargs):
pass
def make_sure_path_exists(self, filepath):
logger.debug(f"make_sure_path_exists {filepath}")
dirname = os.path.dirname(filepath)