public static bool IsSymlink(this FileSystemInfo file) { return ((file.Attributes & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint); }