Xuanwo commented on code in PR #7096:
URL: https://github.com/apache/opendal/pull/7096#discussion_r2646848013
##########
core/core/src/raw/oio/list/flat_list.rs:
##########
@@ -92,7 +92,15 @@ where
async fn next(&mut self) -> Result<Option<oio::Entry>> {
loop {
if let Some(de) = self.next_dir.take() {
- let (_, mut l) = self.acc.list(de.path(),
OpList::new()).await?;
+ let (_, mut l) = match self.acc.list(de.path(),
OpList::new()).await {
+ Ok(v) => v,
+ Err(e) if e.kind() == ErrorKind::PermissionDenied => {
+ // Skip directories that we don't have permission to
access
Review Comment:
It's better if we could print a warning message here.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]