plotman icon indicating copy to clipboard operation
plotman copied to clipboard

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

Open FlyWieEinAirplane opened this issue 4 years ago • 1 comments

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.

FlyWieEinAirplane avatar Sep 11 '21 16:09 FlyWieEinAirplane

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?

altendky avatar Sep 12 '21 18:09 altendky