About allDirectories vs. directories

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

About allDirectories vs. directories

Stephane Ducasse-3
Hi

I have been hacking a little page generator based on pillar for the
mooc table of contents and I got surprised by the behavior of

allDirectories
it returns all the subdirectories including itself

This is strange and inconsistent with the API in Behavior

X = one level
allX = deep below
withAllX = deep below including me.

subclasses
allSubclasses
withAllSubclasses

So now when we do a deep we have to remov the first or scan the result
to remove
the receiver. I found that not nice.
May be I miss something obvious such as .. which would be a child and
return the parent = the starting container.


Stef