Function Directory.getCurrentDir

Returns the absolute path to the currently opened directory (e.g. res://folder or C:\tmp\folder).

String getCurrentDir() nothrow @nogc;