Skip to content

Commit

Permalink
Merge pull request #99 from md-owes/develop
Browse files Browse the repository at this point in the history
+semver: fix | this fixes #98 by reverting #94
  • Loading branch information
md-owes authored Aug 2, 2023
2 parents e349380 + 91717c2 commit a0a1b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion directory-deleter/Models/DirectoryModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ await Task.Run(async () =>
foreach (string directory in subdirs)
{
Log.Logger?.Debug($"Searching for {targetFolder} subdirectories in location {currentDirectory}");
if (Path.GetDirectoryName(directory) == targetFolder)
if (Path.GetFileName(directory) == targetFolder)
{
await DeleteDirectoryAsync(directory);
_deleteCount++;
Expand Down

0 comments on commit a0a1b1d

Please sign in to comment.