Refactor DownloadFileOperation.java
Description
small refactoring of DownloadFileOperation to :
- prevent NPE & Security Exception
- limit risk of corner case which could result in a file deletion after a download
- Make code easier to read and manage
Tests
https://gitlab.e.foundation/e/os/eDrive/-/quality/test_cases/146
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/762
10 commandments of code reviews
Edited by Vincent Bourgmayer