2014-03-31 07:03:07 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
2014-04-13 15:38:12 +08:00
|
|
|
|
using Newtonsoft.Json;
|
2014-03-31 07:03:07 +08:00
|
|
|
|
|
2015-01-05 22:41:17 +08:00
|
|
|
|
namespace Wox.Plugin.Folder
|
2014-12-15 22:58:49 +08:00
|
|
|
|
{
|
2016-04-21 08:53:21 +08:00
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
2014-12-15 22:58:49 +08:00
|
|
|
|
public class FolderLink
|
|
|
|
|
{
|
2014-04-13 15:38:12 +08:00
|
|
|
|
[JsonProperty]
|
2014-12-15 22:58:49 +08:00
|
|
|
|
public string Path { get; set; }
|
2014-04-13 15:38:12 +08:00
|
|
|
|
|
2019-07-31 18:11:50 +08:00
|
|
|
|
public string Nickname =>
|
|
|
|
|
Path.Split(new[] { System.IO.Path.DirectorySeparatorChar }, StringSplitOptions.None)
|
|
|
|
|
.Last()
|
|
|
|
|
+ " (" + System.IO.Path.GetDirectoryName(Path) + ")";
|
2014-04-13 15:38:12 +08:00
|
|
|
|
}
|
2014-03-31 07:03:07 +08:00
|
|
|
|
}
|