Function Directory.getNext
Returns the next element (file or directory) in the current directory (including
and ..
, unless skip_navigational
was given to listDirBegin
).
The name of the file or directory is returned (and not its full path). Once the stream has been fully processed, the method returns an empty String and closes the stream automatically (i.e. listDirEnd
would not be mandatory in such a case).