Skip to content

Directory class under windows inconsistent behavior #627

@jeleclaire

Description

@jeleclaire

Directory's method countItems() gives correct number of entries, but getFirst(String entry) and getNext(String entry) will give more results as the first two entries returned are "." and "..".
So if using getNext() in a loop will result in more iterations than simply looping with the countItems() method. I only tested the functionality under Windows with VS 15 - so I don't know for Linux.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions