I'm migrating a NetApp NTFS based filesystem. It is mounted on both Windows and Linux boxes. My validation script in Powershell is walking the file system and doing various checks that the source and target are the same. It checks timestamps and checksums for example.
It also compares ACLs using the
sddl property of the
get-acl. However, some of the files are actually Linux symbolic links. In this case, everything works but the
get-acl call throws an error
Get-Acl : Attempted to perform an unauthorized operation.
In this case, the security is really on the link target, so I don't need to check this. However, I can't figure out how to skip checking these files since I cannot figure out how to detect that they are Linux symbolic links.
Is there a way to detect that a file is a Linux symbolic link so that I can skip the