Re: 00-index.txt files
By: Charles Blackburn to Digital Man on Thu Sep 08 2022 08:02 pm
Re: 00-index.txt files
By: Digital Man to Charles Blackburn on Wed Sep 07 2022 18:31:14
The sample you pasted doesn't look like any "standard" file format that I'm aware
of.
00_index files are a standard going way back when and used on a lot of shareware cdroms - mainly the simtel and sunet ones. A quick google search shows multiple sites that hold them.
I agree that the file *name* 00index or 00_index is somewhat of a standard (commonly generated for FTP sites), but the file contents are completely adhoc.
Here's an exmaple 00INDEX.TXT file from an OS/2 shareware CD circa 1994:
Hobbes OS/2 archive CDROM. July 94. Walnut Creek CDROM. ---------------------------------------------------------
Communications programs (1.x)
path: \1_x\comm\
---------------------------------------------------------
Name Size Date Description
------------ ---- ---- ------------------------
COM03.ZIP 4018 12-13-87 COM3 on an ATklone
COM16550.ZIP 13478 08-01-92 Replacement COM drivers for high-speed UARTs COMPATCH.TXT 1744 06-04-92 Patch OS/2 1.x device driver for higher speed NBA.ZIP 18230 07-27-90 NetBios broadcast agent (S)
OX2.ZIP 7465 06-21-89 Support for auxiliary port
SETBAUD2.ZIP 8223 09-20-91 Set baud rate up to 115200 baud ---------------------------------------------------------
Device drivers (1.x)
path: \1_x\drivers\
---------------------------------------------------------
Name Size Date Description
------------ ---- ---- ------------------------
4019DRVR.ZIP 202011 11-14-89 IBM 4019 Laser Printer driver
AHA_IBM.CIP 33497 11-06-93
AHA_IBM.ZIP 33497 05-08-90 ASW-1420/AT ASPI SCSI driver for AHA-154x
etc.
... It doesn't match the format of your example 00_index file at all.
You can see how this would be a problem for to parse: the program/script wouldn't
know if "NOTE:", "Some", "See", and "Directory" were supposed to be filenames or
not.
I could certainly see that, but the line of "equals" (=) signs would be the delimiter for the start of the file names.
Sure, but that's not any kind of standard that I'm aware of.
Unfortunately with (at least the simtel and sunet cd's i have) a lot of places, they don't have DIZ files in the ZIP files etc. (which i LOVE :D)
You could likely hack something together (see parse_file_list() in exec/addfiles.js
for a starter), but it probably be easier to just write a script in whatever
language you're most familiar, that converts those files into an actual standard
file format, like FILES.BBS, instead.
I'll take a look into it. I'm a JAVA/JS n00b for sure, but maybe i can knock something up
in perl or python :D
Yeah, just munge the text into something that more closely resembles a FILES.BBS file and you can import that easily enough with the existing utility scripts (addfiles.js).
--
digital man (rob)
Rush quote #71:
He's not concerned with yesterday, he knows constant change is here today Norco, CA WX: 96.8øF, 34.0% humidity, 6 mph S wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net