Skip to content

Commit 7fb9a10

Browse files
zyhfishvaladas
authored andcommitted
Issue-2351: call to overload method to avoid the issue. (#2982)
1 parent c2ef4fe commit 7fb9a10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DNN Platform/Library/Common/Utilities/FileSystemUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ public static void DeleteFilesRecursive(string strRoot, string filter)
469469
DeleteFilesRecursive(strFolder, filter);
470470
}
471471
}
472-
foreach (string strFile in Directory.EnumerateFilePaths(new DirectoryInfo(strRoot)).Where(f => f.Contains(filter)))
472+
foreach (string strFile in Directory.EnumerateFilePaths(strRoot).Where(f => f.Contains(filter)))
473473
{
474474
try
475475
{
@@ -497,7 +497,7 @@ public static void DeleteFolderRecursive(string strRoot)
497497
DeleteFolderRecursive(strFolder);
498498
}
499499

500-
foreach (string strFile in Directory.EnumerateFilePaths(new DirectoryInfo(strRoot)))
500+
foreach (string strFile in Directory.EnumerateFilePaths(strRoot))
501501
{
502502
try
503503
{

0 commit comments

Comments
 (0)