private bool IsEmpty(string folderPath) { var di = new DirectoryInfo(folderPath); return GetPackageDirectories(di).Length == 0; }