mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Created remove_readonly method
This commit is contained in:
parent
2e74ac0aab
commit
027c731678
|
@ -103,3 +103,8 @@ def port_selector(): # Question where user must select port
|
|||
return choice
|
||||
except:
|
||||
return port_selector()
|
||||
|
||||
def remove_readonly(func, path, _):
|
||||
"Clear the readonly bit and reattempt the removal"
|
||||
chmod(path, stat.S_IWRITE)
|
||||
func(path)
|
Loading…
Reference in New Issue
Block a user