planarnetwork / dtd2mysql

MySQL / MariaDB import for DTD feeds (fares, timetable and routeing)
30 stars 10 forks source link

remove tmp directory upon successful processing #101

Closed miklcct closed 1 month ago

miklcct commented 1 month ago

dtd2mysql has never removed temporary files in the past, however, the change of #99 to allow multiple copies running simultaneously means that every run a new folder is created, and it can result in filling up disk space if the /tmp is never cleaned.

This change removes the created temporary folder when the command is successful. It requires bumping Node version from 14.0 to 14.14 , and fs-extra is no longer needed.

linusnorton commented 1 month ago

Thanks