I'm just curious if there's a standard computer term that encompasses everything in a directory, instead of always having to mention "files" and "(sub)directories/folders" separately. So you could say, loop through all the term
s in dir_1
.
Edit: Just to be clear, I'm looking for a singular term, as in my example sentence.
Answer
The POSIX readdir
documentation uses the word entry:
The readdir() function shall return a pointer to a structure representing the directory entry at the current position in the directory stream specified by the argument dirp, and position the directory stream at the next entry. It shall return a null pointer upon reaching the end of the directory stream. The structure dirent defined in the
header describes a directory entry.
No comments:
Post a Comment