2020-05-04 13:16:44 +02:00
|
|
|
import os
|
|
|
|
|
2020-05-04 12:35:08 +02:00
|
|
|
|
|
|
|
class Storage:
|
|
|
|
"""
|
|
|
|
Storage class which works with Endpointsf
|
|
|
|
"""
|
|
|
|
|
2020-05-04 13:16:44 +02:00
|
|
|
def __init__(self, location=None):
|
|
|
|
self._location = location
|
|
|
|
|
|
|
|
@property
|
|
|
|
def location(self):
|
|
|
|
return self._location
|
|
|
|
|
|
|
|
def path_doc(self, ep):
|
|
|
|
return os.path.join(
|
|
|
|
self.location,
|
|
|
|
ep.path_doc
|
|
|
|
)
|
|
|
|
|
|
|
|
def path_result(self, ep):
|
|
|
|
return os.path.join(
|
|
|
|
self.location, ep.path_result
|
|
|
|
)
|
|
|
|
|
2020-05-04 12:35:08 +02:00
|
|
|
def delete(self, ep):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|