def _is_reparse_point(path):
 if (sys.getwindowsversion().major < 6):
  raise SaltInvocationError('Symlinks are only supported on Windows Vista or later.')
 result = win32file.GetFileAttributesW(path)
 if (result == (-1)):
  raise SaltInvocationError('The path given is not valid, symlink or not. (does it exist?)')
 if (result & 1024):
  return True
 else:
  return False

def _is_reparse_point ( path ) : if ( sys . getwindowsversion ( ) . major < 6 ) : raise SaltInvocationError ( 'Symlinks are only supported on Windows Vista or later.' ) result = win32file . GetFileAttributesW ( path ) if ( result == ( - 1 ) ) : raise SaltInvocationError ( 'The path given is not valid, symlink or not. (does it exist?)' ) if ( result & 1024 ) : return True else : return False
returns true if path is a reparse point; false otherwise .