FileNames[] lists all the files and directories inside the current one. How can I list only the directories?
Asked
Active
Viewed 116 times
0
a06e
- 11,327
- 4
- 48
- 108
-
@Kuba I just discovered that. Thanks. – a06e Feb 03 '15 at 13:39
-
more general: 2388 – Kuba Feb 03 '15 at 13:39
-
@Kuba That's not more general, it's a different problem. Here I want to list only the directories inside the current one, without going recursively into deeper levels. – a06e Feb 03 '15 at 14:36
-
@becko I didn't notice your comment before closing, but really I think it's the same problem with slightly different parameters, and your self-answer shows just this. – Mr.Wizard Feb 03 '15 at 14:51
-
@Mr.Wizard I think it's a related, but still different problem. I was just facing the same problem now, and I had forgotten I had asked this question before. I almost posted a new question because I could not find this one, probably because it was closed. I'd reconsider reopening. – a06e Jun 15 '15 at 01:05