diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2025-04-11 11:57:12 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-04-14 21:04:15 +0300 |
commit | 028abfe87c5d3b4dfe8a29472119aa1581beb215 (patch) | |
tree | 517bb88423d311d6065f4a3098a520f863fb682a /docs/markdown/snippets/rust-objects.md | |
parent | bb776a5fe13d60166488712a40b6f8bde7738e0e (diff) | |
download | meson-028abfe87c5d3b4dfe8a29472119aa1581beb215.zip meson-028abfe87c5d3b4dfe8a29472119aa1581beb215.tar.gz meson-028abfe87c5d3b4dfe8a29472119aa1581beb215.tar.bz2 |
minstall: Don't treat symlinks to directories as directories in do_copydir()
As documented in https://docs.python.org/3/library/os.html#os.walk:
> dirnames is a list of the names of the subdirectories in dirpath
> (including symlinks to directories, and excluding '.' and '..')
So currently, we treat any symlink to a directory as a directory instead
of as a symlink. In practice, this means symlinks to directories are
installed as empty directories instead of as symlinks.
Let's make sure the symlinks are kept intact by checking for symlinks
when we iterate over the directory names and treating any symlinks we
find as files instead of as symlinks.
Diffstat (limited to 'docs/markdown/snippets/rust-objects.md')
0 files changed, 0 insertions, 0 deletions