Code: Select all
Files.setAttribute(p, "dos:hidden", true, NOFOLLOW_LINKS);
to make this option valid i have to assume either:
Code: Select all
LinkOption NOFOLLOW_LINK = LinkOption.NOFOLLOW_LINKS;
//Assuming appropriate LinkOption import statement
//a little ugly to read though
Code: Select all
import static java.nio.file.LinkOption.*;
In every question with code snippets there is a warning about to assume every correct import statements needed.
in this question: nothing, so this misleaded me to think the option was invalid.
my fault. Because these are not a code snippet in the question body: are the answers options,
right?