def _set_ownership(self):
if self.owner or self.group:<EOL><INDENT>args = (<EOL>self.path,<EOL>self.owner if self.owner else -<NUM_LIT:1>,<EOL>self.group if self.group else -<NUM_LIT:1>,<EOL>)<EOL>logger.debug("<STR_LIT>", self.path, args)<EOL>os.chown(*args)<EOL><DEDENT>
set ownership of the directory: user and group

:return: None