Extracting file move operations to a FileMover class.
This improves maintainability as well as doesn't update the db row until the file was actually successfully moved on disk. This keeps db / filesystem in sync.
Showing
Please register or sign in to comment