I am naming some variables in my code and I am trying to avoid naming things such as nameOfFileOrFolder or pathOfFileOrFolder. What is a good name or way to represent both of them? Does one exist?
For example:
A girl or boy can be both represented by the word person.
A cat or dog can both be represented by the word pet or animal OR mammal.
A file or directory can both be represented by the word ....
javaboth files and folder are referenced as a file..File System'something' is the closest - i.e.FileSystemEntryor Object, Item - orFSNodeas recommended in the link.