image

the sleepy snake

index :: path :: iter_children

iter_children(path)

Iterator over a path. Returns the next child component in turn

sample

path = 'aaa/bbb/ccc'
for i in iter_children(path):
print i
>> 'aaa'
>> 'aaa/bbb'
>> 'aaa/bbc/ccc'