Change validate method to work for all storages
This commit is contained in:
parent
c30b8dd1ad
commit
770ac0016e
4 changed files with 11 additions and 16 deletions
|
@ -42,9 +42,12 @@ class BaseStorage(StoragePaths):
|
|||
pass
|
||||
|
||||
def validate(self, client):
|
||||
""" Called to perform any custom storage system validation. The client is an HTTP
|
||||
""" Called to perform storage system validation. The client is an HTTP
|
||||
client to use for any external calls. """
|
||||
pass
|
||||
# Put a temporary file to make sure the normal storage paths work.
|
||||
self.put_content('_verify', 'testing 123')
|
||||
if not self.exists('_verify'):
|
||||
raise Exception('Could not find verification file')
|
||||
|
||||
def get_direct_download_url(self, path, expires_in=60, requires_cors=False, head=False):
|
||||
return None
|
||||
|
|
Reference in a new issue