PowerToys/Wox.Infrastructure/Storage/PluginJsonStorage.cs

20 lines
573 B
C#
Raw Normal View History

using System.IO;
namespace Wox.Infrastructure.Storage
{
2016-04-27 05:45:31 +08:00
public class PluginJsonStorage<T> :JsonStrorage<T> where T : new()
{
2016-04-27 05:45:31 +08:00
public PluginJsonStorage()
{
2016-05-19 02:38:43 +08:00
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();
}
}
}