PowerToys/Plugins/Wox.Plugin.Folder/FolderLink.cs
2016-04-21 20:42:07 +01:00

19 lines
412 B
C#

using System;
using System.Linq;
using Newtonsoft.Json;
namespace Wox.Plugin.Folder
{
[JsonObject(MemberSerialization.OptIn)]
public class FolderLink
{
[JsonProperty]
public string Path { get; set; }
public string Nickname
{
get { return Path.Split(new[] { System.IO.Path.DirectorySeparatorChar }, StringSplitOptions.None).Last(); }
}
}
}