Flow.Launcher/Plugins/Flow.Launcher.Plugin.Folder/FolderLink.cs

19 lines
469 B
C#
Raw Normal View History

using System;
using System.Linq;
using Newtonsoft.Json;
2020-04-21 09:12:17 +00:00
namespace Flow.Launcher.Plugin.Folder
{
[JsonObject(MemberSerialization.OptIn)]
public class FolderLink
{
[JsonProperty]
public string Path { get; set; }
2019-07-31 10:11:50 +00:00
public string Nickname =>
Path.Split(new[] { System.IO.Path.DirectorySeparatorChar }, StringSplitOptions.None)
.Last()
+ " (" + System.IO.Path.GetDirectoryName(Path) + ")";
}
}