using System; using System.ComponentModel.Composition; using Kyoo.Controllers; namespace Kyoo.Common.Models.Attributes { /// /// An attribute to inform how a works. /// [MetadataAttribute] [AttributeUsage(AttributeTargets.Class)] public class FileSystemMetadataAttribute : Attribute { /// /// The scheme(s) used to identify this path. /// It can be something like http, https, ftp, file and so on. /// /// /// If multiples files with the same schemes exists, an exception will be thrown. /// public string[] Scheme { get; } /// /// true if the scheme should be removed from the path before calling /// methods of this , false otherwise. /// public bool StripScheme { get; set; } public FileSystemMetadataAttribute(string[] schemes) { Scheme = schemes; } } }