I wrote a method(getDirTree1) that makes listing all directories from the root, using the recommended class NSDirectoryEnumerator and method nextObject. But while it was run
Easily use NSDirectoryEnumerator as documented here and shown here
NSDirectoryEnumerator