FindFilesName

Parent Previous Next

FindFilesName

Function that will return a list of strings. Each string is a file name inside the folder.


Syntax:

List<string> FindFilesName(string folderPath, string filter);

 Return a list of strings. Each string is a file name inside the folder.


Params:

String folderPath: A string parameter containing the full path of the folder.

String filter: A string parameter containing the filter of the search. Empty to show all the files.


Return:

list<string>: The name of all the files found.


Example:

In this example, we are creating the List<string> variable "list1" and inserting the names of the files of the Documents path in it.

  


List<string> list1;
list1 = SVFile.FindFilesName("C:\\Users\\Me\\Documents", "");