H
howachen
For the following codes:
//---------------------------------
import java.io.File;
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
File file = new File("c:\\temp");
System.out.println(file.canWrite());
}
}
//---------------------------------
It return true, even in the "security" tab, I removed all the users
(i.e. i can't click into the folder using the windows explorer)
why Java return true?
//---------------------------------
import java.io.File;
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
File file = new File("c:\\temp");
System.out.println(file.canWrite());
}
}
//---------------------------------
It return true, even in the "security" tab, I removed all the users
(i.e. i can't click into the folder using the windows explorer)
why Java return true?