def _set_permissions(zip_file_info, extracted_path):
<EOL>permission = zip_file_info.external_attr >> <NUM_LIT:16><EOL>if not permission:<EOL><INDENT>LOG.debug("<STR_LIT>", zip_file_info.filename)<EOL>return<EOL><DEDENT>os.chmod(extracted_path, permission)<EOL>
Sets permissions on the extracted file by reading the ``external_attr`` property of given file info.

Parameters
----------
zip_file_info : zipfile.ZipInfo
    Object containing information about a file within a zip archive

extracted_path : str
    Path where the file has been extracted to