rmtree: Don't retry when the file is not found

No need to pointlessly loop for several seconds in this case.
0.44
Nirbheek Chauhan 7 years ago
parent 5e043d19f6
commit bf6c528a3e
  1. 2
      mesonbuild/mesonlib.py

@ -876,6 +876,8 @@ def windows_proof_rmtree(f):
try:
shutil.rmtree(f)
return
except FileNotFoundError:
return
except (OSError, PermissionError):
time.sleep(d)
# Try one last time and throw if it fails.

Loading…
Cancel
Save