- use path separators instead of square brackets
- use generator expression instead of list comprehension
- fix bug for empty but not None list of folders