There are 2 "files" in the directory called "." and ".." meaning current directory and parent directory, respectively.
These 2 "files" are shown first before other files when iterating through directory files.
To skip them, call next_file() before your loop so you won't get them.
Code:
open_dir() // stores "." file into your file var
next_file() // stores ".." file into your file var
while(next_file()) {
// proper files are listed here
}
__________________