Directory.GetFiles(folderpath) purpose

What does the Directory.GetFiles(folderpath) method does?


Directory.GetFiles. This returns the file names in a folder. It returns a string array—this contains the full paths of all the files contained inside the specified directory.


Directory.GetFiles will returns the File path of the files, you need to use for each to see that, below is the example


Hey Thanks @msan.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.