Skip to content

Instantly share code, notes, and snippets.

@Josef212
Created October 15, 2019 22:26
Show Gist options
  • Save Josef212/80f309d543d183b69b0c6c756f1baa90 to your computer and use it in GitHub Desktop.
Save Josef212/80f309d543d183b69b0c6c756f1baa90 to your computer and use it in GitHub Desktop.
public static class IOHelper
{
public static void ListDirsOnDir(string dir)
{
if (!Directory.Exists(dir))
return;
string[] dirs = Directory.GetDirectories(dir);
foreach (var d in dirs)
ListDirsOnDir(d);
string[] files = Directory.GetFiles(dir);
foreach (var file in files)
Debug.Log(file);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment