AcManager.Controls.CustomShowroom.CustomShowroomWrapper.IsSameDirectories C# (CSharp) Метод

IsSameDirectories() приватный статический Метод

private static IsSameDirectories ( string a, string b ) : bool
a string
b string
Результат bool
        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;
            }
        }