I tried a python code to search all directories inside a main folder in my pc, the code is:
[x[0] for x in os.walk(dir)]
that I found in here.
Well, now I'm interested in writing a similar code able to search and list all available directories in my pc without specifying the main directory 'dir' (suppose I don't know if I'm in C:\, in E:\, in C:\python2.7\, etc...). For 'available' I mean all directories that can be opened/read/modified and are accessible with my account (which has specific privileges that, suppose, I do not know).
Have you some working codes to perform what I ask?
Thank you