mirror of
https://github.com/clearml/clearml-docs
synced 2025-06-26 18:17:44 +00:00
Small edits (#784)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user