Skip to content

Commit

Permalink
fix error in the readme regarding download dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
nanjiangshu committed Jan 14, 2025
1 parent fe6a7ad commit c0a9a54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,19 +204,19 @@ If no config is given by the user, the tool will look for a previous login from

### List datasets and their files

To list datasets or the files within a dataset that the user has access to, the `--datasets` flag should be used and the login URL must be provided:
To list datasets or the files within a dataset that the user has access to, the `--datasets` flag should be used and the download URL must be provided:

```bash
./sda-cli -config <configuration_file> list --datasets --url <login_url> (--bytes)
./sda-cli -config <configuration_file> list --datasets --url <download-service-url> (--bytes)
```

where `<login_url>` is the URL where the user goes for authentication. This command returns a list of accessible datasets, including the number
where `<download-service-url>` is the URL for the download service of SDA. This command returns a list of accessible datasets, including the number
of files in each dataset and the total size of it. The `--bytes` flag is optional and it will display the size of the dataset in bytes.

To list the files within a particular dataset, the user must provide the dataset ID (which can be obtained by executing the previous command):

```bash
./sda-cli -config <configuration_file> list -dataset <datasetID> -url <login_url> (--bytes)
./sda-cli -config <configuration_file> list -dataset <datasetID> -url <download-service-url> (--bytes)
```

This command returns a list of files within the dataset, including their file IDs, file sizes and file paths. The `--bytes` flag is optional and it will display the size of the files in bytes.
Expand Down

0 comments on commit c0a9a54

Please sign in to comment.