Delay adding tree items until all stat() calls have completed so they appear all at once. Determine directory access permissions after adding all items.
Delay adding tree items until all stat() calls have completed so they appear all at once.
Determine directory access permissions after adding all items.

shaurz/devo