(20251114) Ready to start API testing.
This commit is contained in:
@@ -1655,14 +1655,14 @@ class AsyncMongoStorage(AsyncMongo):
|
||||
):
|
||||
|
||||
"""
|
||||
Returns a GridOut object so that you can implement your own download logic using the built-in 'read' method.
|
||||
Returns a GridOut object so that you can implement your own downloads logic using the built-in 'read' method.
|
||||
Once the reading is done, use the 'close' method to release the resources used by the stream.
|
||||
:param file_id: (RECOMMENDED) the id of the save file.
|
||||
:param file_name: The name of the saved file. NOT RECOMMENDED because you could have many files with the same
|
||||
name. The best way to tell files apart if from the id.
|
||||
:param session: The session if you need to do this in a transaction.
|
||||
:param raise_exception: Whether, or not, you want to raise an exception when something fails.
|
||||
:return: The download stream that implements the 'read' and 'close' methods, or None if something failed.
|
||||
:return: The downloads stream that implements the 'read' and 'close' methods, or None if something failed.
|
||||
"""
|
||||
|
||||
# Ensure you are connected:
|
||||
@@ -1671,7 +1671,7 @@ class AsyncMongoStorage(AsyncMongo):
|
||||
# Assume failure:
|
||||
stream = None
|
||||
|
||||
# Try to open a download stream:
|
||||
# Try to open a downloads stream:
|
||||
try:
|
||||
|
||||
# If a file id is supplied (preferred way):
|
||||
|
||||
Reference in New Issue
Block a user