cve-check: backport of fix for FileNotFoundError raise
Original upstream commit: https://git.openembedded.org/openembedded-core/commit/?id=9829c16301bf2dce39fa046401a984f112fa0322
Add directory creation to be sure the destination directory exists
before performing the file copy.
FileNotFoundError occurs when running CI, caused by the fact that
the destination directory doen't exists.
Signed-off-by: Davide Gardenal davide.gardenal@huawei.com
Edited by Davide Gardenal