Skip to content

Regression with switch to filesystem function  #349

@ofTheo

Description

@ofTheo

So I think the error with the nightly build is tied to the switch from ofFile::copyTo to fs::copy_file.
ofFile::copyTo creates the folder structure if it doesn't exist.

See:
https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworks/utils/ofFileUtils.cpp#L957-L959

But fs::copy_file doesn't

So when the projectGenerator tries to copy the template file sortingExample/.vscode/c_cpp_properties.json over into sortingExample/.vscode/ it errors as the folder doesn't exist.

Suggestion we switch fs::copy_file to an internal copyFile call which mimics the old behavior or we revert to the old ofFile::copyTo as I am guessing this might be affecting other files as well.

Related:
openframeworks/openFrameworks#7502

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