mirror of
https://github.com/clearml/clearml-docs
synced 2025-02-07 13:21:46 +00:00
Dataset: Include another use case for add_external_files
(#356)
This commit is contained in:
parent
1fa97a6b55
commit
03d3b014a8
@ -169,7 +169,7 @@ dataset.add_files(
|
|||||||
### add_external_files()
|
### add_external_files()
|
||||||
|
|
||||||
To add files or folders to the current dataset, leaving them in their original location, use the [`Dataset.add_external_files`](../references/sdk/dataset.md#add_external_files)
|
To add files or folders to the current dataset, leaving them in their original location, use the [`Dataset.add_external_files`](../references/sdk/dataset.md#add_external_files)
|
||||||
method. Input the `source_url` argument, which can be a link from cloud storage (`s3://`, `gs://`, `azure://`)
|
method. Input the `source_url` argument, which can be a link or a list of links from cloud storage (`s3://`, `gs://`, `azure://`)
|
||||||
or local / network storage (`file://`).
|
or local / network storage (`file://`).
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@ -178,6 +178,13 @@ dataset.add_external_files(
|
|||||||
source_url="s3://my/bucket/path_to_folder_or_file",
|
source_url="s3://my/bucket/path_to_folder_or_file",
|
||||||
dataset_path="/my_dataset/new_folder/"
|
dataset_path="/my_dataset/new_folder/"
|
||||||
)
|
)
|
||||||
|
dataset.add_external_files(
|
||||||
|
source_url=[
|
||||||
|
"s3://my/bucket/path_to_folder_or_file",
|
||||||
|
"s3://my/bucket/path_to_another_folder_or_file",
|
||||||
|
],
|
||||||
|
dataset_path="/my_dataset/new_folder/"
|
||||||
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
There is an option to add a set of files based on wildcard matching of a single string or a list of wildcards, using the
|
There is an option to add a set of files based on wildcard matching of a single string or a list of wildcards, using the
|
||||||
|
Loading…
Reference in New Issue
Block a user