mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-16 04:29:16 +08:00
19 lines
459 B
C#
19 lines
459 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 =>
|
|
Path.Split(new[] { System.IO.Path.DirectorySeparatorChar }, StringSplitOptions.None)
|
|
.Last()
|
|
+ " (" + System.IO.Path.GetDirectoryName(Path) + ")";
|
|
}
|
|
}
|