Skip to content

Allow $new->chmod($old) to copy mode of another path #319

@grr

Description

@grr

I propose allowing chmod to accept a path as an argument, from which it can copy the mode to apply to the the original path. Currently the user has to do:

$new->chmod($old->stat->mode & 07777);

It would be a lot more convenient to do:

$new->chmod($old)

This is similar sugar as request #311 .

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