What does the word "directory" or "file" mean?

I am trying to name an object, which may be a file or a directory. What is the correct terminology for this?

I reviewed

handle → rejected, the object is not a handle

address → rejected, object is not an address

object -> rejected, too general, should be the best terminology

When I say “object” in my first sentence, I specifically talk about <div> in the HTML DOM, but that could be anything.

To put my question in a different way, what is the parent word for children “file” and “directory”? for example a foo may be a file or a directory.

+4
source share
4 answers

I heard the phrase "file system object", although it was painful to say :)

+4
source

On Unix, we call any file and a inode directory, since the file is slightly different from the directory in binary representation.

+3
source

So, for reference, Java has the File class, which can be a directory or a standard file. Basically processing the directory as a private file. class java.io.File

Alternatively, you can go to the old school and just call it AbstractFile.

+3
source

On Unix, everything - both the directory and the file - is a file .

+1
source

All Articles