Small edits (#784)

This commit is contained in:
pollfly
2024-02-26 17:24:58 +02:00
committed by GitHub
parent 91fcaa2f24
commit 90f2affe91
5 changed files with 12 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ class. The storage examples include:
### Downloading a File
To download a ZIP file from storage to the `global` cache context, call the [StorageManager.get_local_copy](../../references/sdk/storage.md#storagemanagerget_local_copy)
To download a ZIP file from storage to the `global` cache context, call the [`StorageManager.get_local_copy`](../../references/sdk/storage.md#storagemanagerget_local_copy)
class method, and specify the destination location as the `remote_url` argument:
```python
@@ -49,7 +49,7 @@ class method, and specifying the chunk size in MB (not supported for Azure and G
### Uploading a File
To upload a file to storage, call the [StorageManager.upload_file](../../references/sdk/storage.md#storagemanagerupload_file)
To upload a file to storage, call the [`StorageManager.upload_file`](../../references/sdk/storage.md#storagemanagerupload_file)
class method. Specify the full path of the local file as the `local_file` argument, and the remote URL as the `remote_url`
argument.
@@ -59,7 +59,7 @@ StorageManager.upload_file(
)
```
Use the `retries parameter` to set the number of times file upload should be retried in case of failure.
Use the `retries` parameter to set the number of times file upload should be retried in case of failure.
By default, the `StorageManager` reports its upload progress to the console every 5MB. You can change this using the
[`StorageManager.set_report_upload_chunk_size`](../../references/sdk/storage.md#storagemanagerset_report_upload_chunk_size)
@@ -68,7 +68,7 @@ class method, and specifying the chunk size in MB (not supported for Azure and G
### Setting Cache Limits
To set a limit on the number of files cached, call the [StorageManager.set_cache_file_limit](../../references/sdk/storage.md#storagemanagerset_cache_file_limit)
To set a limit on the number of files cached, call the [`StorageManager.set_cache_file_limit`](../../references/sdk/storage.md#storagemanagerset_cache_file_limit)
class method and specify the `cache_file_limit` argument as the maximum number of files. This does not limit the cache size,
only the number of files.