Dražen Lučanin added the comment:

I created a first version of the patch (attached as a remote hg repo). It would 
enable users to exclude hidden files with:

    import os
    print(os.listdir(path='.', show_hidden=False))

while still keeping full backwards compatibility, since show_hidden is an 
optional argument set to True by default.

@Dmi Baranov - well, I think aiming at the ls functionality would be a good 
first step (so we would mimic the -a flag, as explained in the manpage). As far 
as Windows, that's not too clear, I agree. So far I only added the 
functionality to the posix_listdir. Do you think this should act the same on 
Windows - i.e. hiding  dotfiles?

----------
hgrepos: +193

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18087>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to