Click or drag to resize

DirectoryGetNext Method

Returns the next element (file or directory) in the current directory (including . and .., unless skip_navigational was given to ListDirBegin(Boolean, Boolean)).

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).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public string GetNext()

Return Value

Type: String

[Missing <returns> documentation for "M:Godot.Directory.GetNext"]

See Also