Skip to content

Feature: 00index.jsonl in FTP Directories

Would be nice if the Directories/Files in each directory was listed in newline delimited JSON [1][2]. Each line is a record, where non-printable characters, newlines etc are escaped, which is the default for many JSON stringifiers. This would make it easier to programatically mirror content between BBSes.

Suggested structure...

{
  type: string;  // "group" or "dir" or "file" - maybe just "dir" and "file" since group doesn't mean much here
  path: string;  // full ftp path and file/dirname - /main/sbbs/sbbs316c.zip
  name: string;  // name only part - sbbs316c.zip
  sdesc: string; // short description - cp437 converted to utf8
  desc: string;  // long description - cp437 converted to utf8
  size: number;  // bytes
  uploadBy: string; // Username
  uploadOn: string; // ISO-8601 encode date-time of upload "2015-01-01T12:45:00Z"
}
  1. http://ndjson.org/
  2. https://jsonlines.org/
Edited by Michael J. Ryan