Answers for "c# get files in folder and subfolders"

C#
0

how to get all files from folder and subfolders in c#

public static List<String> GetAllFiles(String directory)
        {
            return Directory.GetFiles(directory, "*", SearchOption.AllDirectories).ToList();
        }
Posted by: Guest on February-22-2022

Code answers related to "c# get files in folder and subfolders"

C# Answers by Framework

Browse Popular Code Answers by Language