U4-7048 - refresh IFile instances from disk
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using Umbraco.Core.Configuration;
|
||||
using Umbraco.Core.Configuration.UmbracoSettings;
|
||||
using Umbraco.Core.IO;
|
||||
|
||||
@@ -15,16 +13,17 @@ namespace Umbraco.Core.Models
|
||||
public class Script : File
|
||||
{
|
||||
public Script(string path)
|
||||
: base(path)
|
||||
{
|
||||
|
||||
}
|
||||
: this(path, (Func<File, string>) null)
|
||||
{ }
|
||||
|
||||
internal Script(string path, Func<File, string> getFileContent)
|
||||
: base(path, getFileContent)
|
||||
{ }
|
||||
|
||||
[Obsolete("This is no longer used and will be removed from the codebase in future versions")]
|
||||
public Script(string path, IContentSection contentConfig)
|
||||
: this(path)
|
||||
{
|
||||
}
|
||||
: base(path)
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether the current entity has an identity, which in this case is a path/name.
|
||||
|
||||
Reference in New Issue
Block a user