Two files "test.txt" and "test2.txt" were created in C:\tmp_dir. I want to know how many files in "C:\tmp_dir". My code:
dim s as string;
s = System.IO.Directory.GetFiles("C:\tmp_dir");
LogMessage(s.Length);
But it's obviously wrong. It's returns 40(amount of symbols in path and both files) instead of 2. How can I do this properly?