BALL-Project / ball

The Biochemical Algorithms Library
GNU Lesser General Public License v2.1
72 stars 31 forks source link

Directory class under windows inconsistent behavior #627

Open jeleclaire opened 7 years ago

jeleclaire commented 7 years ago

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.

philthiel commented 7 years ago

Same on macOS. Needs rewrite, we anyway should move to boost filesystem. Furthermore, I have the impression that most of the functionality in the directory class is not used.