Skip to content

/system/Images/Image.php image()->copy() mkdir #3732

Closed
@bbyong2410

Description

@bbyong2410

When I try to copy image to a directory that does not exist

\Config\Services::image()->copy('..../non/exist/dir', 'image.jpg');

copy() method couldn't create directories.

if (! is_dir($targetPath))
{
mkdir($targetName, 0755, true);
}

Isn't it correct to do mkdir() with $targetPath?

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

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions