Skip to content

Update exec() to use --update=none instead of deprecated option "-n" #42

@josefglatz

Description

@josefglatz

exec('cp ' . ($overwrite === false ? '-n ' : '') . $fromPath . ' ' . $toPath); uses a deprecated cp option "-n". This leads to warnings

cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead

used cp version cp (GNU coreutils) 9.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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