This commit is contained in:
parent
fd3f8371cc
commit
5784fb2283
|
@ -96,10 +96,10 @@ pub async fn get_s3_filelist(client: &S3Client, bucket: &str) -> Vec<[std::strin
|
||||||
let mut parts = filepath.split('/').collect::<Vec<&str>>(); // Explicit type annotation
|
let mut parts = filepath.split('/').collect::<Vec<&str>>(); // Explicit type annotation
|
||||||
let filename = parts.pop().unwrap();
|
let filename = parts.pop().unwrap();
|
||||||
let mut filename_parts = filename.split('.').collect::<Vec<&str>>();
|
let mut filename_parts = filename.split('.').collect::<Vec<&str>>();
|
||||||
let _ext = filename_parts.pop().unwrap();
|
let _ext = filename_parts.pop().unwrap_or_default();
|
||||||
let filekey = filename_parts.pop().unwrap();
|
if let Some(filekey) = filename_parts.pop() {
|
||||||
|
filekeys.push([filekey.to_string(), s3_filepath.to_string()]);
|
||||||
filekeys.push([filekey.to_string(), s3_filepath.to_string()]);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user