Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
        }
 
PREVIOUS NEXT
Tagged: #files #folder #subfolders
ADD COMMENT
Topic
Name
6+3 =