I have to process thousands of files but my program is failing after 20 files with the exception "No Space Left".
This is my pseudo code.
for (Task t: tasks) {
File f = t.createTempFile()
processing(f)
f.delete()
}
I checked the /tmp folder. The files are not getting deleted. My hairs are falling out. Can someone give some suggestions?
PS: it should have permissions to create the files so it should have permissions to delete as well.