How to get the list of files in /tmp folder in Linux?
I tried with,
File temp = File.createTempFile("temp.txt", ".tmp");
temp.deleteOnExit();
File[] tmpFiles = temp.listFiles();
But this doesn't work?
Basically I want to delete some files in /tmp directory of linux.