pywin32 icon indicating copy to clipboard operation
pywin32 copied to clipboard

Prefer `os.path.exists` over `os.stat try-catch`

Open Avasam opened this issue 11 months ago • 0 comments

Makes checking the existence of a path more idiomatic. Reduces use of try-catch for logical flow. Simplifies some code. Solves a few "possibly unbound/undefined" variables as seen by type-checkers.

Avasam avatar Jan 17 '25 02:01 Avasam