GitHub user Xuanwo added a comment to the discussion: Is there a way to tell if 
the file size is 0 or if the service doesn't provide size?

Yes, we used to call `stat` during listing, but we've changed that behavior. 
Maybe we should just make `content_length` return `Option<u64>`, although that 
could be quite annoying since most other services do provide this field.

Another solution is to use different representations for metadata returned by 
the list. However, this can also make the API inconvenient to use.

GitHub link: 
https://github.com/apache/opendal/discussions/6323#discussioncomment-13592805

----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@opendal.apache.org

Reply via email to