Skip to content

Instantly share code, notes, and snippets.

@mfkl
Created April 7, 2020 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfkl/d7ecf036c43b042b195830771434293b to your computer and use it in GitHub Desktop.
Save mfkl/d7ecf036c43b042b195830771434293b to your computer and use it in GitHub Desktop.
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