Possible Duplicate:
How do i programmatically change file permissions?
I want to set read permission for some directory. Because i want to use list() method from java.io.File, but when i print for example this:
System.out.println(fileDir.list());
i get "null", according to the documentation it may mean that I do not have permissions to the directory, where the file is located.