Directory in C#

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

I need to go through all the files in a directory (out side of the project) including subfolders.
The documentation page for it doesn’t seem to show any c# code.
I’m messing arround with no previous experience in c# or any more complex language than that and using godot 4 beta 2 mono version’s editor which doesn’t seem to help me with any syntaxes either so I’m a little confused about it.
Just tell me tho how’d iterate through a directory using c#

:bust_in_silhouette: Reply From: SteveSmith

string files = Directory.GetFiles(@"c:", “*.txt”);

(from c# - Find all files in a folder - Stack Overflow )