public static string GetProperty(this IFileAbstractLayer fal, string file, string propertyName)
        {
            var dict = fal.GetProperties(file);

            dict.TryGetValue(propertyName, out string result);
            return(result);
        }
 public ImmutableDictionary <string, string> GetProperties(string file) =>
 Path.IsPathRooted(file) ? ImmutableDictionary <string, string> .Empty : _impl.GetProperties(file);
Beispiel #3
0
        public static bool HasProperty(this IFileAbstractLayer fal, string file, string propertyName)
        {
            var dict = fal.GetProperties(file);

            return(dict.ContainsKey(propertyName));
        }