Rename function to not use abbreviations

This commit is contained in:
shreyamalviya 2021-06-10 16:55:56 +05:30
parent 74111f80e9
commit 7643102ccd
2 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,9 @@ def _create_secure_directory_linux(path: str):
def _create_secure_directory_windows(path: str):
try:
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)
except Exception as ex:
LOG.error(

View File

@ -4,7 +4,7 @@ import win32con
import win32security
def get_sd_for_owner_only_perms() -> None:
def get_security_descriptor_for_owner_only_perms() -> None:
user = get_user_pySID_object()
security_descriptor = win32security.SECURITY_DESCRIPTOR()