Skip to content

Copying an underscored file removes the underscore #569

@cgwrench

Description

@cgwrench

Version

v2.0.3

Platform

Windows

What steps will reproduce the bug?

I'm trying to copy a file whose filename begins with an underscore, like the following example from the docs:

// Copy a underscored file
site.copy("_headers");

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

I'd expect to see a _headers file in the _site output directory.

What do you see instead?

Instead, I see a headers file (note the missling leading underscore).

Additional information

Is this the expected behaviour? If so, how can I copy a file and retain it's leading underscore?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions