Wolfmyths / Myth-Mod-Manager

An easy way to swap and manage Payday 2 mods outside the game
https://modworkshop.net/mod/43276
MIT License
9 stars 4 forks source link

Cannot move compressed files due to permission errors #20

Closed Wolfmyths closed 1 year ago

Wolfmyths commented 1 year ago
PermissionError: [WinError 5] Access is denied: 'C:/Users/tyler/Downloads/24922-Corrected Normal Maps@11.0/Corrected Normal Maps\\effects\\decals\\blood_splatter'

I've only been able to retrace the bug through installing this mod:

https://modworkshop.net/mod/24922

Here's how I trigger the bug:

  1. Download and open the archive with winrar
  2. Drag the folder from within winrar and drop it into Myth Mod Manager

This bug shouldn't be fixed in earlier versions, but I tested this on the 1.0.0-release branch

The traceback is called when shutil.rmtree() or shutil.move() is called because they both involve file deletion.

I'm really confused as of why this is happening, the folders when viewing with winrar have blue text meaning that they are compressed which might have something to do with it.

Deleting manually does work.

This is a really strange bug that might make some bumps for a lot of users, so please let me know if you know anything about this topic.

Wolfmyths commented 1 year ago

There were sub directories in the folder that had every permission except writing permissions. I am writing a fix now so this doesn't happen in the 1.0 release