Find and append file path

Tim Chase python.list at tim.thechases.com
Thu Jan 12 12:50:39 EST 2017


On 2017-01-12 18:32, Peter Otten wrote:
> Why did you add an explicit isdir() check? My understanding is that
> the names in dirs are known to be directories.

Ah, right.  The code I had laying around that did something similar
but processes both the dirs and the files, so when the OP asked for
just dirs, I ended up with both belt-and-suspenders changes to it.

So that isdir() check could readily be removed.

-tkc




More information about the Python-list mailing list