Skip to content
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

StoredObject.isDirectory() always return false; #143

Open
xvusrmqj opened this issue Oct 26, 2017 · 3 comments
Open

StoredObject.isDirectory() always return false; #143

xvusrmqj opened this issue Oct 26, 2017 · 3 comments

Comments

@xvusrmqj
Copy link

I traverse the container in which there are many directory but get the method return false.
my code as follows:

Collection<StoredObject> objects = util.listObjects(containerName);
for (StoredObject currentObject : objects) {
	boolean isDirectory = currentObject.isDirectory();
	String path = currentObject.getName();
	System.out.println("path="+path+",isDirectory="+isDirectory);
}
@ferrys
Copy link
Contributor

ferrys commented Oct 30, 2017

Hi @xvusrmqj, which versions of both JOSS and Swift are you using? Are you getting any exceptions? I would like to try to recreate this issue

@xvusrmqj
Copy link
Author

xvusrmqj commented Oct 31, 2017

    <dependency>
        <groupId>org.javaswift</groupId>
        <artifactId>joss</artifactId>
        <version>0.9.17</version>
    </dependency>

no exception.

image

@chengchengpei
Copy link

@ferrys is this issue fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants