Get all files within folder and subfolders

 


from https://stackoverflow.com/questions/14305581/method-to-get-all-files-within-folder-and-subfolders-that-will-return-a-list



            string dirPath =  @"Z:\RawData\";

            string[] filePaths = Directory.GetFiles(dirPath, "*.*", SearchOption.AllDirectories);


留言

熱門文章