[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2014-07-28 Thread Akira Li
Akira Li added the comment: I've updated os.walk() documentation to mention that *dirnames* list includes symlinks to directories. To imitate the other two cases: - treat the symlinks as files: for dirpath, dirnames, files in os.walk(top): dirs = [] for name in dirnames:

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2014-07-28 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benhoyt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2014-07-17 Thread Uwe Kleine-König
Uwe Kleine-König added the comment: I like the function as it is documented, i.e. "filenames is a list of the names of the non-directory files in dirpath.". This includes all symlinks (in the followlinks=False cast at least). I'd say not including symlinks to directories but symlinks to files

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2012-02-07 Thread Nick Coghlan
Nick Coghlan added the comment: This behaviour came up recently when implementing os.fwalk() [1]. There are problems with all 3 possible approaches (list as dirs, list as files, don't list at all) when followlinks is False. Since all alternatives are potentially surprising, the current behavi

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2012-02-06 Thread Sung-Yu Chen
Changes by Sung-Yu Chen : -- nosy: +Sung-Yu.Chen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2011-09-13 Thread Alexey Smirnov
Changes by Alexey Smirnov : -- nosy: +alexey-smirnov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2011-09-13 Thread Марк Коренберг
Changes by Марк Коренберг : -- title: os.wlak() consider some symlinks as dirs instead of non-dirs -> os.walk() consider some symlinks as dirs instead of non-dirs ___ Python tracker ___