AbanteCart Development > Development Help Needed

Copy or move files under extension to a new location during upgrading extension


Hi core devs,

I have a folder that contains uploaded files that was placed under extension folder (extension_name/files), and i want to move the folder and files to a new location (under image folder) during upgrading the extension.

But when i try to upgrade the extension, i found out that the folder is removed.

Is there a way to copy the file and the folder to a new location during the upgrade routine so they are not removed?



--- Quote ---But when i try to upgrade the extension
--- End quote ---

please clarify how you did this. i mean how you did upgrade of extension.

i create an upgrade.php file and add it in the config file like this:

--- Code: ---

--- End code ---


[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod