dolibarr 18.0.6
migrate_picture_path.php File Reference

Migrate pictures from old system prior to 3.7 to new path for 3.7+. More...

Go to the source code of this file.

Functions

 migrate_product_photospath ($product)
 Migrate file from old path to new one for product $product.
 

Detailed Description

Migrate pictures from old system prior to 3.7 to new path for 3.7+.

Definition in file migrate_picture_path.php.

Function Documentation

◆ migrate_product_photospath()

migrate_product_photospath ( $product)

Migrate file from old path to new one for product $product.

Parameters
Product$productObject product
Returns
void

Definition at line 97 of file migrate_picture_path.php.

References dol_is_dir(), dol_is_file(), dol_mkdir(), dol_move(), dol_osencode(), dol_sanitizeFileName(), and get_exdir().