Fix Crash Issue while using "Dump Media Library"
This MR fixes a crash on repeated media library exports.
The app would crash when using the "Dump Media Library" feature if a dump file from a previous export already existed. This was caused by an incorrect attempt to create a directory at the destination file's path.
This fix corrects the logic by:
- Ensuring the parent Logs directory exists.
- Removing the old dump file before copying the new one.
This makes the export operation robust and prevents the crash.