Horje
how to get all files from folder and subfolders in c# Code Example
get all files in all subdirectories c#
 Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)
c# list all files in a directory and subdirectory
string[] allfiles = Directory.GetFiles("path/to/dir", "*.*", SearchOption.AllDirectories);
list all files in directory and subdirectories c#
string[] entries = Directory.GetFileSystemEntries(path, "*", SearchOption.AllDirectories);
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();
        }




Csharp

Related
Convert xml to json Code Example Convert xml to json Code Example
TextBox filling in C# Code Example TextBox filling in C# Code Example
c# create empty file if not exists Code Example c# create empty file if not exists Code Example
tempdata serializer cannot erorr Code Example tempdata serializer cannot erorr Code Example
c# read single key Code Example c# read single key Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9