C# File/Path API

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

Hi all–

I’m learning to use C# with godot, and I have a question about file paths/APIs. I’d like to be able to open things under “user://” and “res://” using the native C# file APIs. Is there some API in godot that would allow me to grab the absolute paths of these directories?

:bust_in_silhouette: Reply From: juppi

Yes. There is a static method for that:

Godot.ProjectSettings.GlobalizePath("res://");

Godot.ProjectSettings.GlobalizePath("user://");