What is a name that can represent both a file and a directory?

I name some variables in my code, and I try to avoid names like nameOfFileOrFolderor pathOfFileOrFolder. What is a good name or a way to introduce them both? Does it exist?

For example:
A girl or a boy can be represented by the word man .
A cat or dog may be represented by the word pet or animal OR mammal .
A file or directory can be declared with the word ....

+5
source share
2 answers

The Stack Exchange software program discusses well the following:

https://softwareengineering.stackexchange.com/questions/183856/word-for-the-superset-of-files-and-folders

FileSystemEntry, FileSystemObject, FileSystemNode FSNode.

0

path

  • configPath
  • configFilePath
  • configDirPath
0

All Articles