parseListDOS.d.ts 436 B

123456789101112
  1. import { FileInfo } from "./FileInfo";
  2. /**
  3. * Returns true if a given line might be a DOS-style listing.
  4. *
  5. * - Example: `12-05-96 05:03PM <DIR> myDir`
  6. */
  7. export declare function testLine(line: string): boolean;
  8. /**
  9. * Parse a single line of a DOS-style directory listing.
  10. */
  11. export declare function parseLine(line: string): FileInfo | undefined;
  12. export declare function transformList(files: FileInfo[]): FileInfo[];