Skip to content

Fix cleanup exception due to attempting to delete a non-empty directory#6

Merged
Ploaj merged 2 commits intoakaneia:masterfrom
AlexanderHarrison:master
Jul 7, 2024
Merged

Fix cleanup exception due to attempting to delete a non-empty directory#6
Ploaj merged 2 commits intoakaneia:masterfrom
AlexanderHarrison:master

Conversation

@AlexanderHarrison
Copy link
Copy Markdown
Contributor

Prevents the following exception when the cleanup '-c' flag is passed.

Unhandled Exception: System.IO.IOException: The directory is not empty.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean 
throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkH
ost)
   at System.IO.Directory.Delete(String path)
   at MexTK.FighterFunction.Compiling.Compile(String[] inputs, Boolean disableWarnings, Boolean clea
n, Int32 optimizationLevel, String[] includes, String buildPath, Boolean debugSymbols, Boolean quiet
, Boolean isCPP)
   at MexTK.Commands.CmdFighterFunction.CompileElfs(String[] inputs, Boolean disableWarnings, Boolea
n clean, Int32 optimizationLevel, String[] includes, String buildPath, Boolean debug, Boolean quiet,
 Boolean isCPP)
   at MexTK.Commands.CmdFighterFunction.DoIt(String[] args)
   at MexTK.Program.Main(String[] args)

@Ploaj Ploaj merged commit 7b3485a into akaneia:master Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants