scylladb / scylla-jmx

Scylla JMX proxy
GNU Affero General Public License v3.0
28 stars 52 forks source link

dist/debian/debian_files_gen.py: don't ignore permission error on shutil.rmtree() #145

Closed syuu1228 closed 3 years ago

syuu1228 commented 3 years ago

shutil.rmtree(ignore_errors=True) was for ignores error when directory not exist, but it also ignores permission error, so we shouldn't use that. Run os.path.exists() before shutil.rmtree() instead.

See scylladb/scylla#7337