From 40f95466c87f527b7b58cfca5625274dbd52a191 Mon Sep 17 00:00:00 2001 From: Eugen Ciur Date: Fri, 25 Dec 2020 09:57:36 +0100 Subject: [PATCH] add upload/download functions --- mglib/storage.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mglib/storage.py b/mglib/storage.py index 1907290..09137a0 100644 --- a/mglib/storage.py +++ b/mglib/storage.py @@ -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)