maris@lemmy.world to Programmer Humor@programming.dev · 1 day agoGambling with Lainlemmy.worldimagemessage-square31fedilinkarrow-up1308arrow-down111
arrow-up1297arrow-down1imageGambling with Lainlemmy.worldmaris@lemmy.world to Programmer Humor@programming.dev · 1 day agomessage-square31fedilink
minus-squareLostXOR@fedia.iolinkfedilinkarrow-up36·1 day agoIsADirectoryError: [Errno 21] Is a directory: 'C:\Windows\System32' At least use shutil.rmtree for some semblance of possibility.
minus-squareChaoticNeutralCzech@feddit.orglinkfedilinkEnglisharrow-up14·1 day agoAlso, the backslashes need to be escaped I believe
minus-squarebrucethemoose@lemmy.worldlinkfedilinkarrow-up3·1 day agoOr just use forward slashes like someone sane!
minus-squareChaoticNeutralCzech@feddit.orglinkfedilinkEnglisharrow-up1·2 hours 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