Skip to content

Add a Files trait #3

@stevegrunwell

Description

@stevegrunwell

Some platforms require files to be put into-place (WordPress' wp-includes/version.php comes to mind), so it'll be helpful to have a trait that will temporarily move old files aside and symlink in new alternatives.

Potential usage:

$this->replaceFile(ABSPATH . '/wp-includes/version.php', STUBS_DIR . '/version.php');

Old files should never actually be deleted, so maybe they're moved aside with a .bak extension (or similar).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions