Skip to content

Commit 6c9c141

Browse files
committed
Skip administrator folder
1 parent a6fa872 commit 6c9c141

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/presence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def check_users_directory(self, context, connection, admin_users):
109109
context.log.debug("Successfully listed C$\\Users")
110110

111111
# collect folder names (lowercase) ignoring "." and ".."
112-
dirs_found.update([f.get_shortname().lower() for f in files if f.get_shortname() not in [".", ".."]])
112+
dirs_found.update([f.get_shortname().lower() for f in files if f.get_shortname().lower() not in [".", "..", "administrator"]])
113113

114114
# for admin users, check for folder presence
115115
for user in admin_users:

0 commit comments

Comments
 (0)