Answers for "get all files in directory and subdirectories c#"

C#
2

get all files in all subdirectories c#

Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)
Posted by: Guest on December-23-2020
1

list all files in directory and subdirectories c#

string[] entries = Directory.GetFileSystemEntries(path, "*", SearchOption.AllDirectories);
Posted by: Guest on July-24-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 "get all files in directory and subdirectories c#"

C# Answers by Framework

Browse Popular Code Answers by Language