SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.83k stars 913 forks source link

Refactor directory creation logic #8832

Open ivandrofly opened 2 months ago

ivandrofly commented 2 months ago

Replace direct directory creation with FileUtil.TryCreateDirectory throughout the code. This centralizes the logic for creating directories and handles potential exceptions uniformly. It enhances maintainability and error handling.