Le 04/01/2014 13:06, Wieland Hoffmann a écrit :
>
> In picard/util/__init__.py:
>
> > @@ -365,3 +365,16 @@ def os_path_samefile(p1, p2):
> >          return ap1 == ap2
> >  else:
> >      os_path_samefile = os.path.samefile
> > +
> > +
> > +def is_hidden_path(path, normalized=False):
> > +    """Returns true if at least one element of the path starts with a dot"""
> > +    if not normalized:
> > +        path = os.path.normpath(path) # we need to ignore /./ and /a/../ cases
> > +    while True:
>
> I've checked the behaviour on Windows and it's different in the file
> browser and the regular |Add file/folder| buttons:
>
>   * In the file browser, the |show hidden files| option has the
>     expected effect (hidden files/folders will be shown or, well, hidden)
>   * The |Add file/folder| buttons seem to use the native dialogs for
>     browsing and, as such, the behaviour in them does actually depend
>     on the explorers settings regarding hidden files.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/musicbrainz/picard/pull/187/files#r8651531>.
>
Hmmm, do you mean we have no control on what is shown in `Add
file/folder` dialogs on Windows ?
Can the PR go in as is without causing any serious issue on Windows ?