(path, mode)
return (stat_info.st_mode & 0o170000) == mode
Test whether the path is the specified mode type.
Test whether the path is the specified mode type.
Test whether the path is the specified mode type .
def _path_is_mode_type(path, mode):
    """Test whether the path is the specified mode type."""
    try:
        stat_info = _path_stat(path)
    except OSError:
        return False
    return (stat_info.st_mode & 0o170000) == mode
def _path_is_mode_type ( path , mode ) : try : stat_info = _path_stat ( path ) except OSError : return False return ( stat_info . st_mode & 0o170000 ) == mode