2014-03-30 23:03:07 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Linq;
|
2014-04-13 07:38:12 +00:00
|
|
|
|
using Newtonsoft.Json;
|
2014-03-30 23:03:07 +00:00
|
|
|
|
|
2020-04-21 09:12:17 +00:00
|
|
|
|
namespace Flow.Launcher.Plugin.Folder
|
2014-12-15 14:58:49 +00:00
|
|
|
|
{
|
2016-04-21 00:53:21 +00:00
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
2014-12-15 14:58:49 +00:00
|
|
|
|
public class FolderLink
|
|
|
|
|
|
{
|
2014-04-13 07:38:12 +00:00
|
|
|
|
[JsonProperty]
|
2014-12-15 14:58:49 +00:00
|
|
|
|
public string Path { get; set; }
|
2014-04-13 07:38:12 +00:00
|
|
|
|
|
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) + ")";
|
2014-04-13 07:38:12 +00:00
|
|
|
|
}
|
2014-03-30 23:03:07 +00:00
|
|
|
|
}
|