crepererum commented on code in PR #376: URL: https://github.com/apache/arrow-rs-object-store/pull/376#discussion_r2149310536
########## src/azure/client.rs: ########## @@ -1058,6 +1063,12 @@ fn to_list_result(value: ListResultInternal, prefix: Option<&str>) -> Result<Lis !matches!(blob.properties.resource_type.as_ref(), Some(typ) if typ == "directory") && blob.name.len() > prefix.len() }) + .map(BlobInternal::try_from) + .filter_map(|parsed| match parsed { + Ok(parsed) => Some(parsed), + Err(_) if ignore_unparsable_paths => None, + Err(e) => panic!("cannot parse path: {e}"), Review Comment: I read @kylebarron's :+1: on https://github.com/apache/arrow-rs-object-store/pull/376#issuecomment-2966380560 as "current behavior is there's an error, NOT a panic". So I think the flag should ignore the error, but even if the flag isn't set, you MUST NOT panic. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org