ericaltendorf / plotman

Chia plotting manager
Apache License 2.0
909 stars 280 forks source link

finding unused dst dirs fails because of trailing slash "/" mismatch #919

Open FlyWieEinAirplane opened 3 years ago

FlyWieEinAirplane commented 3 years ago

https://github.com/ericaltendorf/plotman/blob/77f85e3b38abc45d8cb6af3bad650b458c3aef35/src/plotman/manager.py#L130

var d will be in the format of "/mnt/destDir" while each key in dir2ph.keys() will be in format "/mnt/destDir/" Because of this, all directories will be in the ununsed_dirs array.

altendky commented 3 years ago

I really need to get to using pathlib someday... it wouldn't have this issue. But, thank you for catching this and reporting it with an explanation. I'll do a quick patchup for now. You were observing this in the running of plotman I would guess? With madMAx?

Any chance you could test out https://github.com/ericaltendorf/plotman/pull/920?