Created
October 15, 2019 22:26
-
-
Save Josef212/80f309d543d183b69b0c6c756f1baa90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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