def _set_mode(self):
if self.mode is not None:<EOL><INDENT>logger.debug("<STR_LIT>", self.path, oct(self.mode))<EOL>os.chmod(self.path, self.mode)<EOL><DEDENT>
set permission bits if needed using python API os.chmod

:return: None