Skip to content

Commit

Permalink
Issue-2351: call to overload method to avoid the issue. (#2982)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyhfish authored and valadas committed Sep 10, 2019
1 parent c2ef4fe commit 7fb9a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DNN Platform/Library/Common/Utilities/FileSystemUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public static void DeleteFilesRecursive(string strRoot, string filter)
DeleteFilesRecursive(strFolder, filter);
}
}
foreach (string strFile in Directory.EnumerateFilePaths(new DirectoryInfo(strRoot)).Where(f => f.Contains(filter)))
foreach (string strFile in Directory.EnumerateFilePaths(strRoot).Where(f => f.Contains(filter)))
{
try
{
Expand Down Expand Up @@ -497,7 +497,7 @@ public static void DeleteFolderRecursive(string strRoot)
DeleteFolderRecursive(strFolder);
}

foreach (string strFile in Directory.EnumerateFilePaths(new DirectoryInfo(strRoot)))
foreach (string strFile in Directory.EnumerateFilePaths(strRoot))
{
try
{
Expand Down

0 comments on commit 7fb9a10

Please sign in to comment.