private static bool IsSameDirectories(string a, string b) {
try {
var f = Directory.GetFiles(a);
var r = Directory.GetFiles(b).Select(Path.GetFileName).ToList();
return f.Length == r.Count && f.Select(Path.GetFileName).All(x => r.Contains(x));
} catch (Exception) {
return false;
}
}