Fix the bug that directories are missing in allpath() gathering
Fix the bug that directories are missing in allpath() gathering

hxford/bypy,menghan/bypy,YelaSeamless/bypy,liujianpc/bypy,eehello/bypy,jezhang/bypy,MaolinWang/bypy,nucked/bypy,oouyang/bypy,krizex/bypy,rchlin/bypy,houtianze/bypy,WangKaimin/bypy,usr0418/bypy,liuycsd/bypy,alex1818/bypy,rocky1001/bypy,wwj718/bypy,adrianzhang/bypy,yusiwen/bypy,liuycsd/bypy,houtianze/bypy,Zocalos/bypy,zeropool/bypy,RobberPhex/bypy