erickguan commented on code in PR #5226:
URL: https://github.com/apache/opendal/pull/5226#discussion_r1812481182
##########
core/src/services/gdrive/lister.rs:
##########
@@ -64,10 +83,32 @@ impl oio::PageList for GdriveLister {
return Ok(());
}
+ let stat_file_metadata = !self
+ .op
+ .metakey()
+ .is_disjoint(Metakey::ContentLength | Metakey::LastModified);
+
// Return self at the first page.
if ctx.token.is_empty() && !ctx.done {
let path = build_rel_path(&self.core.root, &self.path);
- let e = oio::Entry::new(&path, Metadata::new(EntryMode::DIR));
+ let mut metadata = Metadata::new(EntryMode::DIR);
+ if stat_file_metadata {
Review Comment:
Thanks for the review. I get a weird Metadata instance problem, that
`Gdrivebackend::stat` returns metadata with a timestamp but `Lister::poll_next`
gets a result of Metadata without the timestamp.
I will debug it a bit.
--
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]