I'm developing a file browser, and you can't delete a floder that contains other foldersor files. I want to send a message to the user about this if he/she tries to delete a folder like that. I have this code, but it will not work:
public void DeleteDirectory(string _path, bool _delFilesAndDir)
{
DirectoryInfo dirInfo = new DirectoryInfo(_path);
if (dirInfo.GetDirectories() == null || dirInfo.GetFiles() == Go to the complete details ...