Skip to content

Commit

Permalink
#6328 Added the virtual keyword for DeleteDirectory and GetFileInfo m…
Browse files Browse the repository at this point in the history
…ethods in NopFileProvider
  • Loading branch information
exileDev committed Aug 5, 2022
1 parent 6f3c8b8 commit d0c3653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Libraries/Nop.Core/Infrastructure/NopFileProvider.cs
Expand Up @@ -114,7 +114,7 @@ public virtual void CreateFile(string path)
/// Depth-first recursive delete, with handling for descendant directories open in Windows Explorer.
/// </summary>
/// <param name="path">Directory path</param>
public void DeleteDirectory(string path)
public virtual void DeleteDirectory(string path)
{
if (string.IsNullOrEmpty(path))
throw new ArgumentNullException(path);
Expand Down Expand Up @@ -578,7 +578,7 @@ public virtual void WriteAllText(string path, string contents, Encoding encoding
/// <summary>Locate a file at the given path.</summary>
/// <param name="subpath">Relative path that identifies the file.</param>
/// <returns>The file information. Caller must check Exists property.</returns>
public new IFileInfo GetFileInfo(string subpath)
public virtual new IFileInfo GetFileInfo(string subpath)
{
subpath = subpath.Replace(Root, string.Empty);

Expand Down

0 comments on commit d0c3653

Please sign in to comment.