Answers for "how to get all files in a certain directory c#"

C#
2

get all files in all subdirectories c#

Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)
Posted by: Guest on December-23-2020
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 "how to get all files in a certain directory c#"

C# Answers by Framework

Browse Popular Code Answers by Language