I have to check, if directory on disk is empty. It means, that it does not contain any folders/files. I know, that there is a simple method. We get array of FileSystemInfo\'
I'm not aware of a method that will succinctly tell you if a given folder contains any other folders or files, however, using:
Directory.GetFiles(path);
&
Directory.GetDirectories(path);
should help performance since both of these methods will only return an array of strings with the names of the files/directories rather than entire FileSystemInfo objects.