Help needed automatically upload data folder via flashing

Hello,
Is there a command to upload the data folder automatically in the little FS during flashing the esp? Or is there a py script available for uploading???

Discussed in Flash ESP32 image and SPIFFS data at the same time?