Skip to content

Commit

Permalink
Automatically delete empty folders in copiler cleanup method
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliux committed Aug 18, 2024
1 parent a20db96 commit 342f99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private void Cleanup(bool deleteInstallation)

Dependencies.OfType<DownloadSession>().ForEach(x => x.DeleteCache());

if (deleteInstallation && Directory.Exists(DestPath))
if (Directory.Exists(DestPath) && (deleteInstallation || Directory.GetFiles(DestPath).Length == 0)

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / Publish Debug Artifacts

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Debug on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Debug on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Debug on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Debug on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Debug on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Debug on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Release on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Release on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Release on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Release on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Release on ubuntu

) expected

Check failure on line 110 in cli/Kryptor.Cli.Shared/Wordlist/CompileSession.cs

View workflow job for this annotation

GitHub Actions / build / Build Release on ubuntu

) expected
{
Directory.Delete(DestPath, true);
}
Expand Down

0 comments on commit 342f99b

Please sign in to comment.