Skip to content
Commit c5dd2cb6 authored by knownexus's avatar knownexus Committed by Phillip Smyth
Browse files

utils.py: reworked safe_remove

non-Linux platforms don't return EISDIR when attempting to unlink a directory

Stopped safe_remove attempting to unlink dirs
Previously safe_remove would attempt to unlink a path
Before attempting to remove it if it was a dir

Now it checks for a dir before that step
parent 75e1e1c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment