How can I convert "res://" to the Windows files system equivalent using GDScript?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gswashburn

If I use a filedialog I can convert “res://” to windows equivalent by setting the access to filesystem. Is there a way to do this in GDScript.

A secondary question would be if I can pull the Projects folder from Editor Settings using gdscript. I see EditorSettings in Editor but can’t seem to find way of getting values from it.

:bust_in_silhouette: Reply From: gswashburn

Nevermind, I found my own answer:

var respath = ProjectSettings.globalize_path("res://")

Will convert it to OS dependent file path.