-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(fs): Listing only lists directories and not objects #3960
Comments
Are you talking about |
Would you like to share the opendal verison and your file tree layout and the code to list them? |
Java code: @NotNull
public static Set<String> listFiles(BlockingOperator client) {
return client.list("/").stream()
.map((entry) -> entry.path)
.collect(Collectors.toSet());
} I'm pretty pressed between tasks at the moment and can't produce a full repro, but we dedicate a fresh new directory in our tests and read and write that directory via OpenDAL exclusively. At certain points we list to assert side-effects and those assertions fail when using We've worked around this by checking for object existence by doing a read and the object is there, so I suspect it's a Apologies for not being able to provide more context at this point. Versions. The software that writes uses: # Cargo.toml
opendal = "0.42.0" The software that tests uses: <!-- pom.xml -->
<dependency>
<groupId>org.apache.opendal</groupId>
<artifactId>opendal-java</artifactId>
<version>0.42.0</version>
<scope>test</scope>
</dependency> |
Thanks a lot.
The returning list should be |
it returns list of top-level directories for
|
I will try to reproduce this and create a behavior test for this. |
The directory structure is
The java code
the results is
|
Hi @amunra, would you like to try 0.45 for verify? |
Thanks! It may take me a little while to get back on this one. At the moment we're stuck with 0.42.0 since we've encountered some yet-undiagnosed bug with S3 with newer releases which only happens with live S3 instances and not our |
Got it.
Please let me know if any help we can provide. |
Hi, I'm going to close this issue now. Feel free to reopen it if the problem persists. |
We're using OpenDAL as an abstraction across different services.
We expect things to behave the same across S3, Azure and the filesystem, however we found that it isn't really always the case.
One instance is listing a path.
The text was updated successfully, but these errors were encountered: