pub async fn datasets_list_files(
        &self,
        name: impl AsRef<str>,
    ) -> anyhow::Result<ListFilesResult> {
        let (owner_slug, dataset_slug) = self.get_user_and_identifier_slug(name.as_ref())?;
        Ok(Self::request_json(
            self.client
                .get(self.join_url(format!("datasets/list/{}/{}", owner_slug, dataset_slug))?),
        )
        .await?)
    }
/// List all files for a dataset.
///
/// If the [`name`] is not a combination of
/// `<user-name-slug>/<dataset-name-slug>` but only a single slug, the
/// client request to list all the files for the authorized user's dataset
/// with that name `<client-auth-username>/<name>`.
///
/// Example
///
/// List all files for a dataset provided by another user.
///
/// ```no_run
/// use kaggle::KaggleApiClient;
///
/// #[tokio::main]
/// async fn main() -> Result<(), Box<dyn std::error::Error>> {
///     let kaggle = KaggleApiClient::builder().build()?;
///     let resp = kaggle
///         .datasets_list_files("allen-institute-for-ai/CORD-19-research-challenge")
///         .await?;
///     Ok(())
/// }
/// ```
/// Example
///
/// List all files for your own dataset.
///
/// ```no_run
/// use kaggle::KaggleApiClient;
///
/// #[tokio::main]
/// async fn main() -> Result<(), Box<dyn std::error::Error>> {
///     let kaggle = KaggleApiClient::builder().build()?;
///     let resp = kaggle
///         .datasets_list_files("my-awesome-dataset")
///         .await?;
///     Ok(())
/// }
/// ```
List all files for a dataset.

Example

List all files for a dataset provided by another user.


List all files for a dataset . Example List all files for a dataset provided by another user .
pub async fn datasets_list_files(
        &self,
        name: impl AsRef<str>,
    ) -> anyhow::Result<ListFilesResult> {
        let (owner_slug, dataset_slug) = self.get_user_and_identifier_slug(name.as_ref())?;
        Ok(Self::request_json(
            self.client
                .get(self.join_url(format!("datasets/list/{}/{}", owner_slug, dataset_slug))?),
        )
        .await?)
    }
pub async fn datasets_list_files ( & self , name : impl AsRef < str > , ) -> anyhow :: Result < ListFilesResult > { let ( owner_slug , dataset_slug ) = self . get_user_and_identifier_slug ( name . as_ref ( ) ) ? ; Ok ( Self :: request_json ( self . client . get ( self . join_url ( format ! ( " " owner_slug dataset_slug ) ) ? ) , ) . await ? ) }
List all files for a dataset.
List all files for a dataset .
&self
name
impl AsRef<str>
&self
name
impl AsRef<str>
[tokio::main]
async fn main() -> Result<(), Box> {
let kaggle = KaggleApiClient::builder().build()?;
let resp = kaggle
.datasets_list_files("allen-institute-for-ai/CORD-19-research-challenge")
.await?;
Ok(())
}
```
Example

List all files for your own dataset.

```no_run
use kaggle::KaggleApiClient.
async fn main () - > Result< () Box > { let kaggle = KaggleApiClient :: builder () . build () ? ; let resp = kaggle . datasets_list_files ( " allen - institute - for - ai / CORD - 19 - research - challenge " ) . await? ; Ok (( )) } ` ` ` Example List all files for your own dataset . ` ` ` no_run use kaggle :: KaggleApiClient .
[tokio::main]
async fn main() -> Result<(), Box> {
let kaggle = KaggleApiClient::builder().build()?;
let resp = kaggle
.datasets_list_files("my-awesome-dataset")
.await?;
Ok(())
}
```
async fn main () - > Result< () Box > { let kaggle = KaggleApiClient :: builder () . build () ? ; let resp = kaggle . datasets_list_files ( " my - awesome - dataset " ) . await? ; Ok (( )) } ` ` `