Created
April 7, 2020 15:01
-
-
Save mfkl/d7ecf036c43b042b195830771434293b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Item(Media media) | |
{ | |
Media = media; | |
Name = media.Meta(MetadataType.Title); | |
IsDirectory = media.Type == MediaType.Directory; | |
Type = IsDirectory ? "Directory" : "File"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment