-
When op.list_with(&dir)
.recursive(false)
.metakey(ContentLength | ContentType | LastModified) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, in most object storage services, directories are merely treated as a simple prefix ending with '/'. However, when users manually create 'abc/', the behavior may vary. For For It seems unfair to stat Technically, possessing the |
Beta Was this translation helpful? Give feedback.
Hello, in most object storage services, directories are merely treated as a simple prefix ending with '/'. However, when users manually create 'abc/', the behavior may vary.
For
list
withrecursive(false)
, we call object storage services usingListObjects
withdelimiter = "/"
. In this scenario, all paths that end with/
are displayed inCommonPrefixes
as plain strings without metadata.For
list
withrecursive(true)
, we call object storage services usingListObjects
withdelimiter = ""
. Here, all keys are listed inContents
along with their corresponding metadata. It's important to note thatabc/
is treated as a normal object in this context, and is only converted into a directory because …