Tree folding and --dotfiles do not cooperate

Ian Ford <[email protected]> Sun, 8 Sep 2019 15:10:25 -0500
Newsgroups gmane.comp.gnu.stow.bugs
Message-ID <CADTYRxTYdMa=TUbizjNpmLqe=HBfauVaawPF0UJ+-rVMwUeJiA@mail.gmail.com>
Tree folding does not work properly when package is stowed using --dotfiles=
 and
contains dot-XXXX directory if the target already has a .XXXX directory:
---------------------------------------------------------------------------=
-----
$ tree -a ..
..
=E2=94=9C=E2=94=80=E2=94=80 .hidden
=E2=94=94=E2=94=80=E2=94=80 stow
    =E2=94=94=E2=94=80=E2=94=80 pkg
        =E2=94=94=E2=94=80=E2=94=80 dot-hidden
            =E2=94=94=E2=94=80=E2=94=80 file

4 directories, 1 file

$ stow --dotfiles pkg
stow: ERROR: stow_contents() called with non-directory path: stow/pkg/.hidd=
en
---------------------------------------------------------------------------=
-----

Verbose output:
---------------------------------------------------------------------------=
-----
$ stow --dotfiles --verbose=3D3 pkg
stow dir is /home/ngenisis/target/stow
stow dir path relative to target /home/ngenisis/target is stow
cwd now /home/ngenisis/target
cwd restored to /home/ngenisis/target/stow
cwd now /home/ngenisis/target
Planning stow of package pkg...
Stowing contents of stow/pkg (cwd=3D~/target)
Stowing stow / pkg / .hidden
Stowing contents of stow/pkg/.hidden (cwd=3D~/target)
stow: ERROR: stow_contents() called with non-directory path: stow/pkg/.hidd=
en
---------------------------------------------------------------------------=
-----

Version and system information:
---------------------------------------------------------------------------=
-----
$ stow --version
stow (GNU Stow) version 2.3.1

$ perl -v

This is perl 5, version 30, subversion 0 (v5.30.0) built for
x86_64-linux-thread-multi

Copyright 1987-2019, Larry Wall

Perl may be copied only under the terms of either the Artistic License or t=
he
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

$ uname -a
Linux thinkpad 5.2.13-arch1-1-ARCH #1 SMP PREEMPT Fri Sep 6 17:52:33
UTC 2019 x86_64 GNU/Linux
---------------------------------------------------------------------------=
-----