maris@lemmy.world to Programmer Humor@programming.dev · 4 days agoGambling with Lainlemmy.worldimagemessage-square26fedilinkarrow-up1348arrow-down111
arrow-up1337arrow-down1imageGambling with Lainlemmy.worldmaris@lemmy.world to Programmer Humor@programming.dev · 4 days agomessage-square26fedilink
minus-squareLostXOR@fedia.iolinkfedilinkarrow-up38·4 days agoIsADirectoryError: [Errno 21] Is a directory: 'C:\Windows\System32' At least use shutil.rmtree for some semblance of possibility.
minus-squareChaoticNeutralCzech@feddit.orglinkfedilinkEnglisharrow-up16·4 days agoAlso, the backslashes need to be escaped I believe
minus-squarebrucethemoose@lemmy.worldlinkfedilinkarrow-up4·4 days agoOr just use forward slashes like someone sane!
minus-squareChaoticNeutralCzech@feddit.orglinkfedilinkEnglisharrow-up1·3 days agoYou’re right, I forgot Python makes them work on Windows too
IsADirectoryError: [Errno 21] Is a directory: 'C:\Windows\System32'
At least use
shutil.rmtree
for some semblance of possibility.Also, the backslashes need to be escaped I believe
Or just use forward slashes like someone sane!
You’re right, I forgot Python makes them work on Windows too