forked from p15670423/monkey
Rename function to not use abbreviations
This commit is contained in:
parent
74111f80e9
commit
7643102ccd
|
@ -40,7 +40,9 @@ def _create_secure_directory_linux(path: str):
|
||||||
def _create_secure_directory_windows(path: str):
|
def _create_secure_directory_windows(path: str):
|
||||||
try:
|
try:
|
||||||
security_attributes = win32security.SECURITY_ATTRIBUTES()
|
security_attributes = win32security.SECURITY_ATTRIBUTES()
|
||||||
security_attributes.SECURITY_DESCRIPTOR = windows_permissions.get_sd_for_owner_only_perms()
|
security_attributes.SECURITY_DESCRIPTOR = (
|
||||||
|
windows_permissions.get_security_descriptor_for_owner_only_perms()
|
||||||
|
)
|
||||||
win32file.CreateDirectory(path, security_attributes)
|
win32file.CreateDirectory(path, security_attributes)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
LOG.error(
|
LOG.error(
|
||||||
|
|
|
@ -4,7 +4,7 @@ import win32con
|
||||||
import win32security
|
import win32security
|
||||||
|
|
||||||
|
|
||||||
def get_sd_for_owner_only_perms() -> None:
|
def get_security_descriptor_for_owner_only_perms() -> None:
|
||||||
user = get_user_pySID_object()
|
user = get_user_pySID_object()
|
||||||
security_descriptor = win32security.SECURITY_DESCRIPTOR()
|
security_descriptor = win32security.SECURITY_DESCRIPTOR()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue