I am trying to read/write files on Ubuntu 12.04. I set permission of that directory by chmod -R 777 . But still when I call canRead() method on that directory it returns false.
my directory is /root/Temp
please help me to solve this problem
Code (copied from comments):
File xyz = new File("/root/Temp");
System.out.println("filename :"+xyz.getPath());
System.out.println("can read :"+xyz.canRead());
String[] children = xyz.list();
Children is null, output of can read is false.