tydeno / Ploto

A Windows PowerShell based Chia Plotting Manager. Lets you automatically spawn and move plots. Sends you notifications on the go.
MIT License
32 stars 5 forks source link

[BUG] StotikPlotter: When T2 is same as TempDrive error on Remove-AbortedJobs #89

Closed tydeno closed 3 years ago

tydeno commented 3 years ago

Describe the bug If the T2drive is the same as TempDrive, Remove-AbortedPlotoJobs runs into trouble getting the files, as they are already deleted. Affects Stotik Plotter the most, as it defines t2 = temp if no t2 is defined.

To Reproduce 1.) Define no T2/Disable it 2.) Run Ploto with Stotik Plotter 3.) Abort the Jobs 4.) Run Start-PlotoSpawns again (Or Remove-AbortedPlotoJobs)

Expected behavior Remove files correctly if no T2 is specified when using Stotik.

Screenshots PlotoManager @ 13/06/2021 23:33:24 : Amount of spawned Plots in this iteration: 1 PlotoManager @ 13/06/2021 23:33:24 : Overall spawned Plots since start of script: 1 __ PlotoManager @ 14/06/2021 00:13:30 : Detected aborted jobs. Removing them... PlotoRemoveAbortedJobs @ 14/06/2021 00:13:30 : Found aborted Jobs to be deleted: 821d19cf-1e86-49a7-9b47-6a4ea90fb038 PlotoRemoveAbortedJobs @ 14/06/2021 00:13:30 : Cleaning up... PlotoStopJob @ 14/06/2021 00:13:30 : Found the job to be aborted with JobId: 821d19cf-1e86-49a7-9b47-6a4ea90fb038 Get-ChildItem : Cannot find path 'C:\Users\scott\2' because it does not exist. At C:\users\scott.chia\mainnet\Ploto.psm1:1894 char:29

Ploto Version in use

Additional context Add any other context about the problem here.