“描述”文件规格?
Windows 程序世界中似乎有一个有点标准的“descript.ion”文件,它为给定目录中的所有/部分文件提供元数据。
我知道有多种程序可以写入此文件(例如:NewsBin、UseNet 下载程序)并读取它(例如:“FAR”,模仿旧 Norton Commander 的文件管理器)。
我正在编写自己的文件索引器,并希望添加解析和使用“descript.ion”文件中的信息的功能。
我遇到的问题是我无法找到该文件的实际规范,绝望地进行大量谷歌搜索。
我尽我所能对其进行了逆向工程,但我不确定我是否捕获了 100% 的可能细节,所以我想我应该这么问。
以下是文件中的示例行:
"Rus Song1.mp3" SovietMus 1/2, [email protected], Fri Aug 08 00:46:27 2008
RusSong2.mp3 SovietMus 2/2, [email protected], Fri Aug 08 01:46:22 2008
看起来结构是:
第一个“令牌”是文件名。
如果标记以双引号以外的任何字母开头,则标记以第一个
空格
字符结束。如果令牌以双引号开头,则令牌结尾为以下双引号
不确定如果文件名包含双引号会发生什么,IIRC 它在 Windows 文件系统中是非法的,因此转义引号可能是一个没有实际意义的问题)
最后一个标记(向后移动到最后一个逗号的行尾)是一个时间戳。
倒数第二个标记(最后一个逗号到倒数第二个逗号向后移动)是 Usenet 新闻组中发布者的名称。我不太确定通用格式会发生什么,因为我看到的唯一的 descript.ion 文件来自 NewsBin,这显然是以 Usenet 为中心的。
之间的所有内容都是描述,在 NewsBin 的情况下来自帖子的主题。
之间的所有内容
问题:
有人知道更官方的“descript.ion”文件规范/文档吗? (或者,至少,您自己了解这些文件并可以验证我的规范)
有人知道读取或写入此文件的任何其他程序吗?
谢谢!
There appears to be a somewhat standard "descript.ion" file in Windows programs universe which provides meta data for all/some of the files in a given directory.
I know there are various programs which write this file (example: NewsBin, UseNet downloader) and read it (Example: "FAR", a file manager mimicking old Norton Commander).
I'm writing my own file indexer, and would like to add the ability to parse and use the info from "descript.ion" files.
The problem I have is that I have not been able to find an actual spec for the file, despine much googling.
I reverse engineered it as best I could, but I'm not certain whether I captured 100% of the possible details, so I figured I'd ask SO.
Here are example lines from the file:
"Rus Song1.mp3" SovietMus 1/2, [email protected], Fri Aug 08 00:46:27 2008
RusSong2.mp3 SovietMus 2/2, [email protected], Fri Aug 08 01:46:22 2008
As it seems the structure is:
First "token" is a file name.
If the token starts with any letter but double quote, the token ends at the first
space
character.If the token starts with the double quote, the end of token is the following double quote
Not sure what happens if filename contains a double quote, IIRC it's illegal in Windows filesystems, so escaping the quote may be a moot question)
Last token (end of line to the very last comma moving backwards) is a timestamp.
Second to last token (the very last comma to second-to-last comma moving backwards) is the name of the poster from the Usenet newsgroup. I'm not quite sure what happens in generic format since the only descript.ion files I saw were from NewsBin that is obviously Usenet centric.
Everything in between is a description, in NewsBin's case coming from post's subject.
QUESTIONs:
Does anyone know of a bit more official "descript.ion" file spec/documentation?
(or, at elast, have your own knowledge of those files and can verify my spec)Does anyone know of any other programs that read or write this file?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我系统上的描述文件也来自 Total Commander。它们遵循其他答案中提到的基本规范:
每行以正常的 Windows 换行符结束。
此外,程序存储多行注释如下:
这里,我的意思是descript.ion文件包含一个反斜杠和一个字母“n”,我在其中输入了换行符,以及两个特殊字符
04 C2 在注释末尾。此外,该行以 Windows 换行符
0D 0A
结束。显然,行尾的两个额外字符标志着多行注释的结束。如果我删除它们,注释将在 GUI 中呈现为单行,并且“\n”序列按字面显示。
The description files on my system are from Total Commander as well. They follow the basic spec mentioned in the other answers:
Each line ends in a normal Windows line break.
In addition, the program stores multi-line comments as follows:
Here, I mean that the descript.ion file contains a backslash and a letter 'n' where I typed a line break, and two special characters
04 C2
at the end of the comment. In addition, the line is ended by a Windows line break0D 0A
.Apparently, the two extra characters at the end of the line signal the end of a multiline comment. If I remove them, the comment is rendered as a single line in the GUI, and the '\n' sequences are displayed literally.
DESCRIPT.ION 的最初用途是为 8.3 文件名提供更长的更具描述性的名称;它只有短名称和较长的描述。正如您所发现的,其他人已经采用了不同格式和用法的名称。坦率地说,我认为您不会在各种用法之间发现任何特定的共性。
The original usage of DESCRIPT.ION was to provide longer more descriptive names to 8.3 filenames; all it had was the shortname and a longer description. As you've found, others have co-opted the name with varying formats and usages. Frankly speaking, I don't think you'll find any specific commonality among the various usages.
格式很简单: FileName 行的其余部分是文件的描述
https://jpsoft.com/ascii /descfile.txt
(回溯机器)
Format is simple: FileName remainder of the line is a description of the file
https://jpsoft.com/ascii/descfile.txt
(Wayback Machine)
descript.ion
文件广泛用于文件管理实用程序“total Commander”,这是 www.ghisler.com 中的一个共享软件。从TC 7.5版本开始,它的长度可以为4096字节。我一直广泛使用它来注释我的文件,没有任何问题。您可以在总指挥官用户论坛上查找不同用户的体验。The
descript.ion
file is extensively used in the file management utility "total commander", a shareware found in www.ghisler.com. From version 7.5 of TC, it can have length of 4096 bytes. I have been using it extensively to annotate my files without any issues. You may look up different user's experience at the total commander users forum.上面的答案对我来说看起来是正确的,只是一个补充:
来自 http://filex.com/file-extension/离子
ION 文件类型主要与“4DOS”相关。注意:Norton Utilities 也使用 4DOS。
http://www.optimasc.com/products/fileid/4dos-descext.pdf
收集了各种 4DOS 描述感知程序和 4DOS 工具的链接。
http://www.4dos.info/4tools.htm
http://drupal.org/node/289988
the answer above looks correct for me, just a addition:
from http://filext.com/file-extension/ION
The ION file type is primarily associated with '4DOS'. Note: Norton Utilities also uses 4DOS.
http://www.optimasc.com/products/fileid/4dos-descext.pdf
Collected links to 4DOS description-aware programs of all kind and 4DOS tools.
http://www.4dos.info/4tools.htm
http://drupal.org/node/289988