Skip to content

Cannot copy nested directory starting with underscore prefix #520

@Maluscat

Description

@Maluscat

Version: Lume v1.19.4
OS: Arch Linux

site.copy fails when trying to copy a directory hierarchy starting with an underscored folder:

site.copy('_lib/someLibrary/css/', 'lib');

All files inside _lib/someLibrary/css/ should get copied over into the _site/lib/ folder. Instead, no files will get copied over whatsoever.

When the initial folder is not prefixed with an underscore, the sites are copied over as expected (but then, potential page files like .md or .html will get rendered, which is not the desired behavior).

As is written in the docs, copying a single underscored folder works just fine, for example:

site.copy('_static', '.'); // Works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions