lib/poshy-env-var.0.5.25/lib/poshy-lucidity.0.3.16/src/Test-ReparsePoint.ps1

#!/usr/bin/env pwsh
$ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest


<#
.SYNOPSIS
    Tests whether or not the specified path is a reparse point.
.OUTPUTS
    System.Boolean
#>

function Test-ReparsePoint([string]$path) {
    $file = Get-Item $path -Force -ea SilentlyContinue
    return [bool]($file.Attributes -band [IO.FileAttributes]::ReparsePoint)
}