def get_mode(path):
    if not os.path.exists(path):
        return ''

    func_name = '{0}.get_mode'.format(__virtualname__)
    if __opts__.get('fun', '') == func_name:
        log.info('The function {0} should not be used on Windows systems; '
                 'see function docs for details. The value returned is '
                 'always None.'.format(func_name))

    return None
Return the mode of a file
dataset/ETHPy150Open saltstack/salt/salt/modules/win_file.py/get_mode