I found this for migration in functions.php in blog, how can i edit this so that that folder not deleted
// MIGRATE FILES TO UPLOADS FOLDER
// This is one time action. When done, old folder in plugin is removed and code is not triggered!
function blg_migrate_images() {
blg_create_upload_folders();
$subfolders = array('blog','tinymce','user');
foreach($subfolders as $sub) {
$file_path_old = osc_content_path() . 'plugins/blog/img/' . $sub . '/';
if(file_exists($file_path_old)) {
$files = glob($file_path_old . '*');
if(count($files) > 0) {
foreach($files as $file_old) {
@rename($file_old, blg_file_path(basename($file_old), $sub));
}
}
@rmdir($file_path_old);
}
}
}
osc_add_hook('init_admin', 'blg_migrate_images');