ball icon indicating copy to clipboard operation
ball copied to clipboard

Directory class under windows inconsistent behavior

Open jeleclaire opened this issue 7 years ago • 1 comments

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.

jeleclaire avatar May 18 '17 11:05 jeleclaire

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.

philthiel avatar May 23 '17 12:05 philthiel