表示“目錄”或“文件”的詞是什麼? (What is the word that means "directory" or "file"?)


問題描述

表示“目錄”或“文件”的詞是什麼? (What is the word that means "directory" or "file"?)

I'm trying to name an object that can be a file or a directory.  What's the correct terminology for this?

I've considered

handle -> rejected, object is not a handle

address -> rejected, object is not an address

object -> rejected, too generic, should be better terminology

When I say "object" in my first sentence, I'm specifically talking about a <div> in an HTML DOM, but it could be anything.

To put my question a different way, what's the parent word of the children "file" and "directory"?  e.g. a foo can be a file, or a directory.


參考解法

方法 1:

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

方法 2:

In Unix we call any file and directory an inode, since a file is not many different from a directory in binary representation.

方法 3:

So just for reference Java has a File class that can be a directory or a standard file. Basically treating a directory as a special case of a file. java.io.File class

Also, you could go old school and just name it AbstractFile.

方法 4:

In Unix, everything -- both a directory and a file -- is a file.

(by Benuser541686Oh Chin BoonKevin Suser649198)

參考文件

  1. What is the word that means "directory" or "file"? (CC BY-SA 3.0/4.0)

#terminology #file-handling #directory #file






相關問題

抽象 ViewModel 在被繼承時是否被視為模型? (Is an abstract ViewModel considered a Model when it is inherited?)

什麼是 Lambda? (What is a Lambda?)

具體確定項目順序的排序的正確術語是什麼? (What is the proper term for an ordering where the order of items is concretely determined?)

在 Ruby 中,“接收者”指的是什麼? (In Ruby what does the "receiver" refer to?)

錯誤跟踪和問題跟踪系統有什麼區別? (What's the difference between a bug tracking and an issue tracking system?)

為什麼術語 API 和 SDK 似乎可以互換使用? (Why do the terms API and an SDK seem to be used interchangeably?)

Java 中的對等類是什麼? (What is a peer class in Java?)

模擬和模擬有什麼區別? (what is the difference between Emulate and Simulate?)

協議術語:消息與數據包 (Protocol Terminology: Message versus Packet)

表示“目錄”或“文件”的詞是什麼? (What is the word that means "directory" or "file"?)

C ++中復合語句和塊之間的區別? (Difference between a compound statement and a block in C++?)

gnu八度中gnu的含義? (Meaning of gnu in gnu octave?)







留言討論