using System; using Umbraco.Core.Models.EntityBase; namespace Umbraco.Core.Models { /// /// Defines a File /// /// Used for Scripts, Stylesheets and Templates public interface IFile : IAggregateRoot { /// /// Gets the Name of the File including extension /// string Name { get; } /// /// Gets the Alias of the File, which is the name without the extension /// string Alias { get; } /// /// Gets or sets the Path to the File from the root of the file's associated IFileSystem /// string Path { get; set; } /// /// Gets the original path of the file /// string OriginalPath { get; } /// /// Called to re-set the OriginalPath to the Path /// void ResetOriginalPath(); /// /// Gets or sets the Content of a File /// string Content { get; set; } /// /// Gets or sets the file's virtual path (i.e. the file path relative to the root of the website) /// string VirtualPath { get; set; } [Obsolete("This is no longer used and will be removed from the codebase in future versions")] bool IsValid(); } }