pub fn gcs_get_file_update_time(path: &str) -> Result<DateTime<Utc>>
Expand description
Get the update time of a file in GCS.
The GCS path should be in the format gs://bucket_name/prefix
.
§Arguments
path
- A string slice that holds the GCS path.
§Returns
A DateTime<Utc>
object representing the update time of the file.
§Errors
This function returns an error if the GCS client cannot be created or the object cannot be read.
§Panics
This function panics if the GCS path is invalid.