U4-9640 - use IFileSystem

This commit is contained in:
Stephan
2017-03-20 15:26:06 +01:00
parent f4eb37d44d
commit a9c7a7a405
4 changed files with 60 additions and 97 deletions

View File

@@ -10,25 +10,23 @@ namespace Umbraco.Web.Trees
[Tree(Constants.Applications.Settings, "partialViews", "Partial Views", sortOrder: 2)]
public class PartialViewsTreeController : FileSystemTreeController
{
protected override string FilePath
protected override IFileSystem2 FileSystem
{
get { return SystemDirectories.PartialViews; }
get { return FileSystemProviderManager.Current.PartialViewsFileSystem; }
}
protected override string FileSearchPattern
{
get { return "*.cshtml"; }
}
private static readonly string[] ExtensionsStatic = { "cshtml" };
protected override string[] Extensions
{
get { return ExtensionsStatic; }
}
protected override string FileIcon
{
get { return "icon-article"; }
}
protected override void OnRenderFileNode(ref TreeNode treeNode)
{
base.OnRenderFileNode(ref treeNode);
}
protected override void OnRenderFolderNode(ref TreeNode treeNode)
{
//TODO: This isn't the best way to ensure a noop process for clicking a node but it works for now.