Skip to content

Intention or bug? File::move does not update path #1782

Description

@hwiesmann

Describe the bug
After a call to File::move(...) File::getRealPath() still returns the path of the file's previous location. This does not make sense, I believe, because that location is invalid. Therefore, I tend to call this a bug.

CodeIgniter 4 version
CodeIgniter4 Alpha 4

Affected module(s)
File

Expected behaviour, and steps to reproduce if appropriate

This reproduces the bug(?):

log_message('debug',$file->getRealPath());
$file->move($newDirectory,$newName);
log_message('debug',$file->getRealPath()); // expected to be $newDirectory.$newName

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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