I want to copy pdf file from one folder
i.e /pub/media/xyz
to another /pub/media/abc
programmatically.
And create target folder if does not exist.
Magento 2 – How to Copy File from One Folder to Another
magento2
magento2
I want to copy pdf file from one folder
i.e /pub/media/xyz
to another /pub/media/abc
programmatically.
And create target folder if does not exist.
Best Answer
I used the function
copyFile()
fromMagento\Framework\Filesystem;