Skip to content

Renaming of dir using move() returns wrong path #307

@grr

Description

@grr

If you do $dir_source->move($dir_target) to rename a directory, according to the docs it should return the new path ($dir_target), but instead it returns $dir_target->child($dir_source->basename). It seems from the implementationm and is sort of implied by the docs, that the source should only be a file, but if the source is a directory, the rename does succeed.

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