Function gcs_list_files

Source
pub fn gcs_list_files(path: &str) -> Result<Vec<ObjectList>>
Expand description

List all files in a GCS path. The GCS path should be in the format gs://bucket_name/prefix.

§Arguments

  • path - A string slice that holds the GCS path.

§Returns

A vector of ObjectList objects representing the files in the GCS path.

§Errors

This function returns an error if the GCS client cannot be created or the object list cannot be read.

§Panics

This function panics if the GCS path is invalid.