How do I get to know if directory is empty or not?
Reading the directory is one way to find out.
Originally posted by laserlight Reading the directory is one way to find out.
And how can I do that?
Look up [man]dir[/man]
Just make sure you check for the "." and
".."
characters, because sometimes readdir treats them as a directory.