maris@lemmy.world to Programmer Humor@programming.dev · 3 days agoGambling with Lainlemmy.worldimagemessage-square33fedilinkarrow-up1350arrow-down111
arrow-up1339arrow-down1imageGambling with Lainlemmy.worldmaris@lemmy.world to Programmer Humor@programming.dev · 3 days agomessage-square33fedilink
minus-squareLostXOR@fedia.iolinkfedilinkarrow-up38·3 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·3 days agoAlso, the backslashes need to be escaped I believe
minus-squarebrucethemoose@lemmy.worldlinkfedilinkarrow-up4·3 days agoOr just use forward slashes like someone sane!
minus-squareChaoticNeutralCzech@feddit.orglinkfedilinkEnglisharrow-up1·2 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