mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
20 lines
573 B
C#
20 lines
573 B
C#
using System.IO;
|
|
|
|
namespace Wox.Infrastructure.Storage
|
|
{
|
|
public class PluginJsonStorage<T> :JsonStrorage<T> where T : new()
|
|
{
|
|
public PluginJsonStorage()
|
|
{
|
|
DirectoryName = Constant.Plugins;
|
|
|
|
// C# releated, add python releated below
|
|
var assemblyName = DataType.Assembly.GetName().Name;
|
|
DirectoryPath = Path.Combine(DirectoryPath, DirectoryName, assemblyName);
|
|
FilePath = Path.Combine(DirectoryPath, FileName + FileSuffix);
|
|
|
|
ValidateDirectory();
|
|
}
|
|
}
|
|
}
|