0
Solved the problem with the code below. Depending would not need to have created a method, however, in my case got better this way.
private Boolean IsFileHidden(string arquivo)
{
var fileInfo = new FileInfo(arquivo);
if (fileInfo.Attributes.HasFlag(FileAttributes.Hidden))
{
return true;
}
return false;
}
Try to see this post, I think that’s what you need: https://stackoverflow.com/questions/39561848/how-to-check-whether-a-file-is-hidden?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
– Joana Brandão
@Joanabrandão, thanks for the tip, I’ll look at this post.
– Diego Farias