anchore / vunnel

Tool for collecting vulnerability data from various sources (used to build the grype database)
Apache License 2.0
69 stars 25 forks source link

fix: os.rename -> shutil.move #534

Closed westonsteimel closed 5 months ago

westonsteimel commented 5 months ago

Replace instances of os.rename with shutil.move to handle the possibility of the destination being a different filesystem. If the source and destination are on the same filesystem, os.rename is used per https://docs.python.org/3.11/library/shutil.html#shutil.move